From 7ea647b2ff9c7f852b48704a51b8813136317bab Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sun, 5 Mar 2023 15:24:17 +0100 Subject: [PATCH] Return turbo stream when resetting 2FA recovery codes --- .../two_factor_authentication/otp_authentication_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/settings/two_factor_authentication/otp_authentication_controller.rb b/app/controllers/settings/two_factor_authentication/otp_authentication_controller.rb index ff83ad4d..75fb4251 100644 --- a/app/controllers/settings/two_factor_authentication/otp_authentication_controller.rb +++ b/app/controllers/settings/two_factor_authentication/otp_authentication_controller.rb @@ -42,6 +42,6 @@ class Settings::TwoFactorAuthentication::OtpAuthenticationController < Applicati def reset current_user.totp_recovery_codes.delete_all @recovery_keys = TotpRecoveryCode.generate_for(current_user) - render "settings/two_factor_authentication/otp_authentication/recovery_keys" + render "settings/two_factor_authentication/otp_authentication/recovery_keys", status: :see_other end end