Skip to content

Commit

Permalink
Merge pull request #507
Browse files Browse the repository at this point in the history
  • Loading branch information
foxcpp committed Jun 25, 2022
2 parents bbaea04 + 15163e7 commit 78966ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/auth/pass_table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (a *Auth) CreateUserHash(username, password string, hashAlgo string, opts H
return fmt.Errorf("%s: create user %s: hash generation: %w", a.modName, key, err)
}

if err := tbl.SetKey(key, hash+":"+hash); err != nil {
if err := tbl.SetKey(key, hashAlgo+":"+hash); err != nil {
return fmt.Errorf("%s: create user %s: %w", a.modName, key, err)
}
return nil
Expand Down

0 comments on commit 78966ad

Please sign in to comment.