Small typo in username validation error message
This commit is contained in:
parent
f2638474b3
commit
0b3b7bee41
|
@ -40,7 +40,7 @@ function validateUserNameAvail(data, cb) {
|
|||
} else {
|
||||
user.getUserIdAndName(data, function userIdAndName(err) {
|
||||
if(!err) { // err is null if we succeeded -- meaning this user exists already
|
||||
return cb(new Error('Userame unavailable'));
|
||||
return cb(new Error('Username unavailable'));
|
||||
}
|
||||
|
||||
return cb(null);
|
||||
|
|
Loading…
Reference in New Issue