mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
crash fix for admin verify email, temp fix
This commit is contained in:
@@ -105,7 +105,9 @@ var bcrypt = require('bcrypt'),
|
||||
|
||||
if (email !== undefined) {
|
||||
db.setObjectField('email:uid', email, uid);
|
||||
if (uid !== 1) User.email.verify(uid, email);
|
||||
if (parseInt(uid, 10) !== 1) {
|
||||
User.email.verify(uid, email);
|
||||
}
|
||||
}
|
||||
|
||||
plugins.fireHook('action:user.create', {uid: uid, username: username, email: email, picture: gravatar, timestamp: timestamp});
|
||||
|
||||
Reference in New Issue
Block a user