fix: #11545, wrong message shown to new users re: email confirmation

isekai-main
Julian Lam 2 years ago
parent 604a8f7e60
commit 2b70063eec

@ -27,7 +27,7 @@ define('messages', ['bootbox', 'translator', 'storage', 'alerts', 'hooks'], func
},
};
if (!app.user.email) {
if (!app.user.email && !app.user.isEmailConfirmSent) {
msg.message = '[[error:no-email-to-confirm]]';
msg.clickfn = function () {
alerts.remove('email_confirm');

Loading…
Cancel
Save