Method: Cms::UsersController#update_password
- Defined in:
- app/controllers/cms/users_controller.rb
#update_password ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'app/controllers/cms/users_controller.rb', line 42 def update_password if user.update_attributes(params[:user]) flash[:notice] = "Password for '#{user.login}' was changed" redirect_to(current_user.able_to?(:administrate) ? cms_users_path : cms_user_path(user)) else render :action => 'change_password' end end |