fix: a non admin user was able to make himself an admin

This commit is contained in:
Elias Schneider
2024-08-13 20:18:41 +02:00
parent 7b4418958e
commit df0cd38dee
2 changed files with 15 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ type WebauthnCredential struct {
Name string `json:"name"`
CredentialID string `json:"credentialID"`
PublicKey []byte `json:"publicKey"`
PublicKey []byte `json:"-"`
AttestationType string `json:"attestationType"`
Transport AuthenticatorTransportList `json:"-"`