diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-01 20:38:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-01 20:38:27 +0900 |
| commit | 93c3faf141c1927a390b2e22169cad90a6a628ed (patch) | |
| tree | 0218f08630a4d9b86551edc9c01ab9697a0e391d /src/api/models | |
| parent | [API] Fix bug and extract validator (diff) | |
| download | sharkey-93c3faf141c1927a390b2e22169cad90a6a628ed.tar.gz sharkey-93c3faf141c1927a390b2e22169cad90a6a628ed.tar.bz2 sharkey-93c3faf141c1927a390b2e22169cad90a6a628ed.zip | |
[API] Fix bug and change limit 50 to 30
Diffstat (limited to 'src/api/models')
| -rw-r--r-- | src/api/models/user.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/models/user.ts b/src/api/models/user.ts index 55f8b7faa8..5ab39d7c92 100644 --- a/src/api/models/user.ts +++ b/src/api/models/user.ts @@ -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 { |