Module: Devise::Controllers::Helpers

Defined in:
lib/devise_twilio_two_factor/controllers/helpers.rb

Instance Method Summary collapse

Instance Method Details

#is_fully_authenticated?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/devise_twilio_two_factor/controllers/helpers.rb', line 49

def is_fully_authenticated?
  !session["warden.user.user.session"].try(:[], TwoFactorAuthentication::NEED_AUTHENTICATION)
end