Skip to content

Commit 15163e7

Browse files
committed
pass_table: fix user hash creation
1 parent bbaea04 commit 15163e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: internal/auth/pass_table/table.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (a *Auth) CreateUserHash(username, password string, hashAlgo string, opts H
145145
return fmt.Errorf("%s: create user %s: hash generation: %w", a.modName, key, err)
146146
}
147147

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

0 commit comments

Comments
 (0)