diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-04-15 02:04:42 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-15 02:04:42 +1000 |
| commit | 2733fc040cc43269889f5e11fd64c1fdb2e09ebd (patch) | |
| tree | 2459462966d202d1177fb166a83a476c2e9c5a51 /internal/session/user_session.go | |
| parent | 37a49b21af4550525890a84b5a7ccf6f1ed51243 (diff) | |
refactor: webauthn naming (#5243)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/session/user_session.go')
| -rw-r--r-- | internal/session/user_session.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/session/user_session.go b/internal/session/user_session.go index 88511eb5d..6a2fa3c22 100644 --- a/internal/session/user_session.go +++ b/internal/session/user_session.go @@ -56,13 +56,13 @@ func (s *UserSession) SetTwoFactorDuo(now time.Time) { s.AuthenticationMethodRefs.Duo = true } -// SetTwoFactorWebauthn sets the relevant Webauthn AMR's and sets the factor to 2FA. -func (s *UserSession) SetTwoFactorWebauthn(now time.Time, userPresence, userVerified bool) { +// SetTwoFactorWebAuthn sets the relevant WebAuthn AMR's and sets the factor to 2FA. +func (s *UserSession) SetTwoFactorWebAuthn(now time.Time, userPresence, userVerified bool) { s.setTwoFactor(now) - s.AuthenticationMethodRefs.Webauthn = true - s.AuthenticationMethodRefs.WebauthnUserPresence, s.AuthenticationMethodRefs.WebauthnUserVerified = userPresence, userVerified + s.AuthenticationMethodRefs.WebAuthn = true + s.AuthenticationMethodRefs.WebAuthnUserPresence, s.AuthenticationMethodRefs.WebAuthnUserVerified = userPresence, userVerified - s.Webauthn = nil + s.WebAuthn = nil } // AuthenticatedTime returns the unix timestamp this session authenticated successfully at the given level. |
