 Your NameandClaude Sonnet 5
|
a71aee9487
|
修复"安全"设置页退出登录无二次确认,单击立即登出
现象:从 account-settings-view.jsx"账户设置"、info-view.jsx,以及第2章系统消息列表"前往
安全设置"跳转按钮都能到达 acc-security-view.jsx 这个"安全"页(并非废弃页面,是与
personal-settings-view.jsx"设置"页并存的独立入口),点击"登出"没有任何二次确认,单击
图标就会立即退出登录,且没有任何撤销机会。
根因:该文件里"登出"按钮的 onClick 直接调用 this.props.onLogout(),而同文件里紧挨着的
"删除帐户"按钮走的是 onShowAlert 弹确认框(handleDeleteAccount)。此前 46a98782 那一轮
已经把 personal-settings-view.jsx"设置"页的登出从原生 window.confirm() 改成了自己的
ConfirmSheet/LogoutConfirm,但漏改了这个仍然可达的旧版"安全"页入口。
修复:新增 handleLogoutRequest,复用本文件已有的 onShowAlert 机制弹确认框,文案
("退出登录"/"确定要退出当前登录吗?")与 personal-settings-view.jsx 的 LogoutConfirm
保持一致,不新造一套措辞。
验证:本地登录后访问 #security,点击"登出"确认弹出对话框(标题/正文/按钮文案核对无误);
点击"取消"保持登录态且仍停留在安全页;点击"好"确认后正确清除 auth-token 并退回登录/租户
判断逻辑接管的空 hash。
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
2026-09-06 15:36:55 +08:00 |
|
richjohnrambo
|
ba8f48ee83
|
完成 IM Web Android 端产品页面开发
|
2026-08-25 18:30:40 +08:00 |
|
or-else
|
79a1bc98b2
|
add config option to send on Enter vs send on CTRL-Enter
|
2025-08-10 15:25:05 +03:00 |
|
or-else
|
2cb9f69a9d
|
option for adjusting text size, rearranged config components
|
2025-07-09 10:53:32 +03:00 |
|
or-else
|
72ec3b51a0
|
edited for code style consistency
|
2022-11-19 17:14:43 -08:00 |
|
or-else
|
d76756c67a
|
race condition when clearing DB
|
2022-02-21 13:20:46 -08:00 |
|
or-else
|
825aa3fb51
|
cleanup and other minor UI fixes
|
2021-10-05 17:20:15 -07:00 |
|
or-else
|
f81aaea837
|
change method signatures to make TopicCommonView usable in INfoView
|
2021-07-16 14:19:56 -07:00 |
|
or-else
|
ba5b82115f
|
fixxing some build breakage
|
2021-07-13 09:49:20 -07:00 |
|
or-else
|
c01f80c248
|
more generic names of some css classes
|
2021-04-06 17:34:10 -07:00 |
|
or-else
|
e5e78755ae
|
blocked chats display
|
2020-04-17 14:30:26 +03:00 |
|
or-else
|
35a63ff5ab
|
fix alert dialog
|
2020-04-13 19:00:38 +03:00 |
|
or-else
|
ea8ac3c293
|
refactoring of account settings into multiple screens
|
2020-04-13 16:01:24 +03:00 |
|