mirror of https://github.com/zulip/zulip.git
models: Set UserProfile.MIN_NAME_LENGTH to two.
Chinese names are often two characters.
This commit is contained in:
parent
ebc7c72d99
commit
b7779667fc
|
@ -527,7 +527,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
|
||||||
|
|
||||||
USERNAME_FIELD = 'email'
|
USERNAME_FIELD = 'email'
|
||||||
MAX_NAME_LENGTH = 100
|
MAX_NAME_LENGTH = 100
|
||||||
MIN_NAME_LENGTH = 3
|
MIN_NAME_LENGTH = 2
|
||||||
API_KEY_LENGTH = 32
|
API_KEY_LENGTH = 32
|
||||||
NAME_INVALID_CHARS = ['*', '`', '>', '"', '@']
|
NAME_INVALID_CHARS = ['*', '`', '>', '"', '@']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue