diff --git a/cmd/frontend/users.go b/cmd/frontend/users.go index 46df586..fbd705a 100644 --- a/cmd/frontend/users.go +++ b/cmd/frontend/users.go @@ -11,8 +11,8 @@ import ( ) func checkUserStrings(user *b.User) (string, int, bool) { - userLen := 255 - nameLen := 56 // max value when aes encrypting up to 255 bytes + userLen := 63 // max value for utf-8 at 255 bytes + nameLen := 56 // max value when aes encrypting utf-8 at up to 255 bytes if len(user.UserName) > userLen { return "Benutzername", userLen, false