Class: ConstructorCore::UsersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- ConstructorCore::UsersController
- Defined in:
- app/controllers/constructor_core/users_controller.rb
Instance Method Summary collapse
Instance Method Details
#profile ⇒ Object
5 6 7 |
# File 'app/controllers/constructor_core/users_controller.rb', line 5 def profile @user = current_user end |
#update_password ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/constructor_core/users_controller.rb', line 9 def update_password @user = current_user if params[:user][:password] == params[:user][:password_confirm] @user.password = params[:user][:password] if @user.save redirect_to '/login', :notice => t(:password_changed) return end end redirect_to :back, :notice => t(:password_error_confirm) end |