mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
fix: #11545, wrong message shown to new users re: email confirmation
This commit is contained in:
@@ -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.message = '[[error:no-email-to-confirm]]';
|
||||||
msg.clickfn = function () {
|
msg.clickfn = function () {
|
||||||
alerts.remove('email_confirm');
|
alerts.remove('email_confirm');
|
||||||
|
|||||||
Reference in New Issue
Block a user