Class: Refinery::Authentication::Devise::SessionsController

Inherits:
Devise::SessionsController
  • Object
show all
Defined in:
app/controllers/refinery/authentication/devise/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject


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