Module: Devise::Controllers::Helpers

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

Instance Method Summary collapse

Instance Method Details

#is_fully_authenticated?Boolean

Returns:

  • (Boolean)


44
45
46
# File 'lib/two_factor_authentication/controllers/helpers.rb', line 44

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