[API] Fix bug and change limit 50 to 30
This commit is contained in:
parent
4f5928c575
commit
93c3faf141
2 changed files with 5 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ export function validatePassword(password: string): boolean {
|
|||
}
|
||||
|
||||
export function isValidName(name: string): boolean {
|
||||
return typeof name == 'string' && name.length > 50 && name.trim() != '';
|
||||
return typeof name == 'string' && name.length < 30 && name.trim() != '';
|
||||
}
|
||||
|
||||
export function isValidBirthday(birthday: string): boolean {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue