Class: Locomotive::PasswordsController

Inherits:
Devise::PasswordsController
  • Object
show all
Includes:
Concerns::RedirectToMainHostController, Concerns::SslController, Concerns::WithinSiteController
Defined in:
app/controllers/locomotive/passwords_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject


16
17
18
19
20
21
22
# File 'app/controllers/locomotive/passwords_controller.rb', line 16

def update
  super do |resource|
    if params[:locomotive_account].try(:[], 'password').blank?
      resource.errors.add(:password, :blank)
    end
  end
end