Merge pull request #93 from davestephens/username
Small typo in username validation error message
This commit is contained in:
commit
4c430775d9
|
@ -40,7 +40,7 @@ function validateUserNameAvail(data, cb) {
|
||||||
} else {
|
} else {
|
||||||
user.getUserIdAndName(data, function userIdAndName(err) {
|
user.getUserIdAndName(data, function userIdAndName(err) {
|
||||||
if(!err) { // err is null if we succeeded -- meaning this user exists already
|
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);
|
return cb(null);
|
||||||
|
|
Loading…
Reference in New Issue