Module: TwoFactorAuth::RegistrationsHelper
- Included in:
- RegistrationsController
- Defined in:
- app/helpers/two_factor_auth/registrations_helper.rb
Instance Method Summary collapse
Instance Method Details
#clear_pending_challenge ⇒ Object
13 14 15 |
# File 'app/helpers/two_factor_auth/registrations_helper.rb', line 13 def clear_pending_challenge user_session.delete 'pending_registration_request_challenge' end |
#registration_request ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/helpers/two_factor_auth/registrations_helper.rb', line 3 def registration_request @registration_request ||= RegistrationRequest.new( TwoFactorAuth.trusted_facet_list_url, [], user_session['pending_registration_request_challenge'] ) user_session['pending_registration_request_challenge'] = @registration_request.challenge @registration_request end |