Class: Refinery::Authentication::Devise::SessionsController
- Inherits:
-
Devise::SessionsController
- Object
- Devise::SessionsController
- Refinery::Authentication::Devise::SessionsController
- Defined in:
- app/controllers/refinery/authentication/devise/sessions_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
13 14 15 16 17 18 |
# File 'app/controllers/refinery/authentication/devise/sessions_controller.rb', line 13 def create super rescue ::BCrypt::Errors::InvalidSalt, ::BCrypt::Errors::InvalidHash flash[:error] = t('password_encryption', :scope => 'refinery.authentication.devise.users.forgot') redirect_to refinery.new_authentication_devise_user_password_path end |