mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
refactor(emails): more work in update email interstitial, interstitial skipping, email change on confirmation, deprecation of requireEmailConfirmation
This commit is contained in:
@@ -48,10 +48,6 @@ SocketUser.emailConfirm = async function (socket) {
|
||||
throw new Error('[[error:no-privileges]]');
|
||||
}
|
||||
|
||||
if (!meta.config.requireEmailConfirmation) {
|
||||
throw new Error('[[error:email-confirmations-are-disabled]]');
|
||||
}
|
||||
|
||||
return await user.email.sendValidationEmail(socket.uid);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user