summaryrefslogtreecommitdiff
path: root/internal/handlers/handler_user_info.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/handler_user_info.go')
-rw-r--r--internal/handlers/handler_user_info.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handlers/handler_user_info.go b/internal/handlers/handler_user_info.go
index 4b95b3e6f..28489b6e7 100644
--- a/internal/handlers/handler_user_info.go
+++ b/internal/handlers/handler_user_info.go
@@ -39,7 +39,7 @@ func UserInfoPOST(ctx *middlewares.AutheliaCtx) {
changed bool
)
- if changed = userInfo.SetDefaultPreferred2FAMethod(ctx.AvailableSecondFactorMethods()); changed {
+ if changed = userInfo.SetDefaultPreferred2FAMethod(ctx.AvailableSecondFactorMethods(), ctx.Configuration.Default2FAMethod); changed {
if err = ctx.Providers.StorageProvider.SavePreferred2FAMethod(ctx, userSession.Username, userInfo.Method); err != nil {
ctx.Error(fmt.Errorf("unable to save user two factor method: %v", err), messageOperationFailed)
return