mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: fix UserNotFound notification on login
This commit is contained in:
1 file changed
+4
-1
@@ -82,7 +82,10 @@ export default new AutoloadPage('user_verify', () => {
|
||||
tfa authn
|
||||
}
|
||||
`, ['data']);
|
||||
if (!info.uname && !info.mail) Notification.error(i18n('User not found.'));
|
||||
if (!info.uname && !info.mail) {
|
||||
Notification.error(i18n('User not found.'));
|
||||
return;
|
||||
}
|
||||
const { authn, tfa } = info.uname || info.mail;
|
||||
if (authn || tfa) {
|
||||
let action = (authn && tfa) ? await chooseAction(true) : '';
|
||||
|
||||
Reference in new issue
Block a user