summaryrefslogtreecommitdiff
path: root/internal/handlers/handler_user_info_test.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2024-05-29 23:09:21 +1000
committerGitHub <noreply@github.com>2024-05-29 23:09:21 +1000
commit010b7fa5e3df3b358bc7c94a8e585ae90e8caeea (patch)
treea31f3eb8e66c48143f08033d27f59857c4d7ef65 /internal/handlers/handler_user_info_test.go
parent2eaef3ca804fb792b5c7b065d25f4329751b5c54 (diff)
fix(handlers): disabling 2fa methods may result in a bad ux (#7360)
This fixes an issue where disabled 2FA methods may appear to users as available. Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/handlers/handler_user_info_test.go')
-rw-r--r--internal/handlers/handler_user_info_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/handlers/handler_user_info_test.go b/internal/handlers/handler_user_info_test.go
index 64f86d6af..773b102d2 100644
--- a/internal/handlers/handler_user_info_test.go
+++ b/internal/handlers/handler_user_info_test.go
@@ -189,7 +189,7 @@ func TestUserInfoEndpoint_SetDefaultMethod(t *testing.T) {
Method: "totp",
HasTOTP: false,
HasWebAuthn: false,
- HasDuo: true,
+ HasDuo: false,
},
config: &schema.Configuration{DuoAPI: schema.DuoAPI{Disable: true}},
loadErr: nil,
@@ -205,7 +205,7 @@ func TestUserInfoEndpoint_SetDefaultMethod(t *testing.T) {
},
api: &model.UserInfo{
Method: "webauthn",
- HasTOTP: true,
+ HasTOTP: false,
HasWebAuthn: true,
HasDuo: true,
},