Skip to content

Commit

Permalink
Merge pull request #1412 from pankajjs/fix/auth
Browse files Browse the repository at this point in the history
Fix: Ensure proper authentication when password is set against an user
  • Loading branch information
arpitbbhayani authored Jan 23, 2025
2 parents 9a0293d + 4771c2c commit 99fe4ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ func Start() {
// and new users in a much better way. Doing this using
// and empty password check is not a good solution.
if config.Config.Password != "" {
_, _ = auth.UserStore.Add(config.Config.Username)
user, _ := auth.UserStore.Add(config.Config.Username)
_ = user.SetPassword(config.Config.Password)
}

ctx, cancel := context.WithCancel(context.Background())
Expand Down

0 comments on commit 99fe4ba

Please sign in to comment.