devise-two-factor icon indicating copy to clipboard operation
devise-two-factor copied to clipboard

helper method for actions that require an OTP

Open krtschmr opened this issue 6 years ago • 0 comments

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?

krtschmr avatar Jan 29 '19 13:01 krtschmr