ユーザー名の少なくとも3文字以上という制限を撤廃

This commit is contained in:
syuilo
2018-04-09 17:09:57 +09:00
parent d90ad34924
commit b9a676a1c1
5 changed files with 6 additions and 6 deletions

View File

@ -89,7 +89,7 @@ export const isRemoteUser = (user: any): user is IRemoteUser =>
//#region Validators
export function validateUsername(username: string): boolean {
return typeof username == 'string' && /^[a-zA-Z0-9_]{3,20}$/.test(username);
return typeof username == 'string' && /^[a-zA-Z0-9_]{1,20}$/.test(username);
}
export function validatePassword(password: string): boolean {