Return turbo stream when resetting 2FA recovery codes

This commit is contained in:
Karina Kwiatek 2023-03-05 15:24:17 +01:00
parent e59c151d83
commit 7ea647b2ff
1 changed files with 1 additions and 1 deletions

View File

@ -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