mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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
|
tfa authn
|
||||||
}
|
}
|
||||||
`, ['data']);
|
`, ['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;
|
const { authn, tfa } = info.uname || info.mail;
|
||||||
if (authn || tfa) {
|
if (authn || tfa) {
|
||||||
let action = (authn && tfa) ? await chooseAction(true) : '';
|
let action = (authn && tfa) ? await chooseAction(true) : '';
|
||||||
|
|||||||
Reference in new issue
Block a user