ui: fix UserNotFound notification on login

pull/679/head
undefined 11 months ago
parent 4b4660b789
commit a48369ab7c
No known key found for this signature in database

@ -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) : '';

Loading…
Cancel
Save