From 20bb31fdf7cc85ed136d2bc8dab44cb3fc14c844 Mon Sep 17 00:00:00 2001 From: Augustin Godiscal Date: Sat, 12 Feb 2022 18:45:20 +0100 Subject: [PATCH] FIX: Email/Username should always be lowercased --- server/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/user.go b/server/user.go index 77a86d9..6e3fdc4 100644 --- a/server/user.go +++ b/server/user.go @@ -53,7 +53,7 @@ func (s *Server) AddUser(ctx context.Context, user *pbUser.UserAddRequest) (*pbU // defaults to User Role, must update with greater privileges to change role newUser := &model.User{ - Username: user.Username, + Username: strings.ToLower(user.Username), RoleID: thisRole, FullName: user.FullName, FirstName: user.FirstName,