Skip to content

Commit

Permalink
fix: update api key gen
Browse files Browse the repository at this point in the history
  • Loading branch information
greenpau committed Dec 2, 2023
1 parent b5833aa commit 923da84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/identity/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ func (db *Database) AddAPIKey(r *requests.Request) error {
if err != nil {
return errors.ErrAddAPIKey.WithArgs(r.Key.Usage, err)
}
s := util.GetRandomStringFromRange(72, 96)
s := util.GetRandomString(72)
failCount := 0
for {
hk, err := NewPassword(s)
Expand Down

0 comments on commit 923da84

Please sign in to comment.