ui: fix UserNotFound notification on login

This commit is contained in:
undefined committed 2023-10-28 02:05:36 +08:00
1 parent 4b4660b789
commit a48369ab7c
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) : '';