diff options
author | George Goldberg <george@gberg.me> | 2017-03-23 17:38:24 +0000 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-03-23 17:38:24 +0000 |
commit | c6ded1dbfd69a1da69add8d2b554f4b7dd0341b3 (patch) | |
tree | a417d54a58edd244edb03935705618737cf2cf13 /model | |
parent | 120f5a6f8a5f4ab05aace89ae710698cf68d0564 (diff) | |
parent | 8ec37570742b67fd640bb3434ea226c655dbf408 (diff) | |
download | chat-c6ded1dbfd69a1da69add8d2b554f4b7dd0341b3.tar.gz chat-c6ded1dbfd69a1da69add8d2b554f4b7dd0341b3.tar.bz2 chat-c6ded1dbfd69a1da69add8d2b554f4b7dd0341b3.zip |
Merge branch 'release-3.7'
Diffstat (limited to 'model')
-rw-r--r-- | model/user.go | 2 | ||||
-rw-r--r-- | model/user_test.go | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/model/user.go b/model/user.go index c7e2b6352..5cefdf1b1 100644 --- a/model/user.go +++ b/model/user.go @@ -37,7 +37,7 @@ const ( USER_LAST_NAME_MAX_RUNES = 64 USER_AUTH_DATA_MAX_LENGTH = 128 USER_NAME_MAX_LENGTH = 64 - USER_NAME_MIN_LENGTH = 3 + USER_NAME_MIN_LENGTH = 1 ) type User struct { diff --git a/model/user_test.go b/model/user_test.go index 542d15e5d..47ec38dbf 100644 --- a/model/user_test.go +++ b/model/user_test.go @@ -189,7 +189,8 @@ var usernames = []struct { expected bool }{ {"spin-punch", true}, - {"sp", false}, + {"sp", true}, + {"s", true}, {"1spin-punch", false}, {"-spin-punch", false}, {".spin-punch", false}, |