v1.18.x
barisusakli 9 years ago
parent 8944856692
commit ec3ae307e9

@ -151,7 +151,7 @@ module.exports = function(User) {
} }
}, },
userNameValid: function(next) { 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) { passwordValid: function(next) {
if (userData.password) { if (userData.password) {

Loading…
Cancel
Save