Skip to content

Commit

Permalink
Merge pull request #27 from teamhanko/fix-secret-deletion
Browse files Browse the repository at this point in the history
fix: delete correct secret
  • Loading branch information
FreddyDevelop authored Dec 8, 2023
2 parents 85a963a + 7eb7a97 commit cab43ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/api/handler/admin/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ func (s *SecretsHandler) removeKey(ctx echo.Context, isApiKey bool) error {
var foundSecret *models.Secret
for _, secret := range tenant.Config.Secrets {
if secret.ID == secretId && secret.IsAPISecret == isApiKey {
foundSecret = &secret
s := secret
foundSecret = &s
}
}

Expand Down

0 comments on commit cab43ee

Please sign in to comment.