Module: Devise::SecurePassword::Controllers::Helpers
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/devise/secure_password/controllers/helpers.rb
Instance Method Summary collapse
- #authenticate_secure_password! ⇒ Object
- #authenticate_secure_password_expired? ⇒ Boolean
- #authenticate_secure_password_path ⇒ Object
Instance Method Details
#authenticate_secure_password! ⇒ Object
19 20 21 22 23 |
# File 'lib/devise/secure_password/controllers/helpers.rb', line 19 def authenticate_secure_password! return unless authenticate_secure_password_expired? redirect_to authenticate_secure_password_path, alert: "#{error_string_for_password_expired}." end |
#authenticate_secure_password_expired? ⇒ Boolean
13 14 15 16 17 |
# File 'lib/devise/secure_password/controllers/helpers.rb', line 13 def authenticate_secure_password_expired? return false if devise_controller? session[:devise_secure_password_expired] == true end |
#authenticate_secure_password_path ⇒ Object
25 26 27 28 29 |
# File 'lib/devise/secure_password/controllers/helpers.rb', line 25 def authenticate_secure_password_path return unless warden.user :"edit_#{devise_secure_password_scope}_password_with_policy" end |