mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
not requiring email any longer for user creation (regression -- closes julianlam/nodebb-plugin-sso-twitter#4)
This commit is contained in:
@@ -21,7 +21,11 @@ module.exports = function(User) {
|
||||
|
||||
async.parallel([
|
||||
function(next) {
|
||||
if (userData.email) {
|
||||
next(!utils.isEmailValid(userData.email) ? new Error('Invalid Email!') : null);
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
},
|
||||
function(next) {
|
||||
next((!utils.isUserNameValid(userData.username) || !userData.userslug) ? new Error('Invalid Username!') : null);
|
||||
|
||||
Reference in New Issue
Block a user