mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 19:41:16 +01:00
closes #3853
This commit is contained in:
@@ -151,7 +151,7 @@ module.exports = function(User) {
|
||||
}
|
||||
},
|
||||
userNameValid: function(next) {
|
||||
next((!utils.isUserNameValid(userData.username) || !userData.userslug) ? new Error('[[error:invalid-username]]') : null);
|
||||
next((!utils.isUserNameValid(userData.username) || !userData.userslug) ? new Error('[[error:invalid-username, ' + userData.username + ']]') : null);
|
||||
},
|
||||
passwordValid: function(next) {
|
||||
if (userData.password) {
|
||||
|
||||
Reference in New Issue
Block a user