mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
feat: new ACP option emailPrompt
... which allows administrators to disable the client-side prompt to encourage users to enter or confirm their email addresses
This commit is contained in:
@@ -755,7 +755,7 @@ app.cacheBuster = null;
|
||||
app.showEmailConfirmWarning = async (err) => {
|
||||
const storage = await app.require('storage');
|
||||
|
||||
if (!app.user.uid || parseInt(storage.getItem('email-confirm-dismiss'), 10) === 1) {
|
||||
if (!config.emailPrompt || !app.user.uid || parseInt(storage.getItem('email-confirm-dismiss'), 10) === 1) {
|
||||
return;
|
||||
}
|
||||
const msg = {
|
||||
|
||||
Reference in New Issue
Block a user