Skip to content

Commit

Permalink
FIX: Email/Username should always be lowercased
Browse files Browse the repository at this point in the history
  • Loading branch information
auggod committed Feb 12, 2022
1 parent 769a802 commit 20bb31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 20bb31f

Please sign in to comment.