diff options
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}, |