Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
trim username
Browse files Browse the repository at this point in the history
  • Loading branch information
KryptXBSA committed Oct 18, 2023
1 parent 95aafa9 commit 2af33de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/auth/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ import (
)

func CreateUserPassword(username, password string) (*db.UserModel, error) {
// trim username
username = strings.ReplaceAll(username, " ", "")

hashedPassword, err := HashPassword(password)
if err != nil {
return nil, err
Expand Down

0 comments on commit 2af33de

Please sign in to comment.