Skip to content

Commit

Permalink
fix: correct web authn aaguid column naming (#1826)
Browse files Browse the repository at this point in the history
## What kind of change does this PR introduce?

Use appropriate column name for Web Authn verification - it's fine to
change this as it's currently behind the feature flags
`MFA_WEB_AUTHN_*_ENABLED` and should have never been used.
  • Loading branch information
J0 authored Nov 6, 2024
1 parent 635d9ba commit 0a589d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/models/factor.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (f *Factor) SaveWebAuthnCredential(tx *storage.Connection, credential *weba
f.WebAuthnAAGUID = nil
}

return tx.UpdateOnly(f, "web_authn_credential", "aaguid", "updated_at")
return tx.UpdateOnly(f, "web_authn_credential", "web_authn_aaguid", "updated_at")
}

func FindFactorByFactorID(conn *storage.Connection, factorID uuid.UUID) (*Factor, error) {
Expand Down

0 comments on commit 0a589d0

Please sign in to comment.