devise-two-factor
devise-two-factor copied to clipboard
helper method for actions that require an OTP
like disabling or enabling 2FA for example should require current OTP on controller level.
couldn't find any helpers
def activate_two_factor
**otp_required!**
current_user.update_attributes(setting_params)
end
something like that?