Method: Account::TwoFactorsController#destroy
- Defined in:
- app/controllers/account/two_factors_controller.rb
#destroy ⇒ Object
29 30 31 32 33 34 35 |
# File 'app/controllers/account/two_factors_controller.rb', line 29 def destroy @user = current_user current_user.update( otp_required_for_login: false, otp_secret: nil ) end |