-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error feedback for username or full name (#45)
* Added error feedback when choosing invalid username * Added error feedback when choosing invalid name
- Loading branch information
1 parent
f4a97c0
commit 8d133d2
Showing
4 changed files
with
106 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const ERROR_MESSAGES: { [key: number]: string } = { | ||
23505: "Username taken", | ||
90000: | ||
"Must be between 3 and 15 characters\n" + | ||
"Must only contain letters, numbers, or underscores\n" + | ||
"Cannot start with an underscore", | ||
90001: | ||
"Must be between 3 and 20 characters\n" + | ||
"Must only contain letters, numbers, spaces, or hyphens\n" + | ||
"Cannot start or end with a space or hyphen", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters