Skip to content

Commit

Permalink
fix username validation to disallow spaces and allow dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
binocarlos committed Dec 8, 2018
1 parent c53e391 commit 62a48a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const user = {
username: wrapper([
required,
minLength(2),
alphaNumeric,
alphaNumericNoSpaces,
]),
optionalPassword: optionalWrapper([
required,
Expand Down

0 comments on commit 62a48a5

Please sign in to comment.