diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-24 19:24:14 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-24 19:24:14 +0400 |
commit | 3e09e6f7b8032859a82266282dfd35715b3b3727 (patch) | |
tree | 7f882004565743b11cb4c734cbdfb9417fa1a9ab /app/controllers/passwords_controller.rb | |
parent | e55e23bbda6f6a95982109bc46e48a5550e4c181 (diff) |
Move Profile related controllers under Profiles:: module
Diffstat (limited to 'app/controllers/passwords_controller.rb')
-rw-r--r-- | app/controllers/passwords_controller.rb | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/app/controllers/passwords_controller.rb b/app/controllers/passwords_controller.rb deleted file mode 100644 index 0e5b42178a7..00000000000 --- a/app/controllers/passwords_controller.rb +++ /dev/null @@ -1,38 +0,0 @@ -class PasswordsController < ApplicationController - layout 'navless' - - skip_before_filter :check_password_expiration - - before_filter :set_user - before_filter :set_title - - def new - end - - def create - new_password = params[:user][:password] - new_password_confirmation = params[:user][:password_confirmation] - - result = @user.update_attributes( - password: new_password, - password_confirmation: new_password_confirmation - ) - - if result - @user.update_attributes(password_expires_at: nil) - redirect_to root_path, notice: 'Password successfully changed' - else - render :new - end - end - - private - - def set_user - @user = current_user - end - - def set_title - @title = "New password" - end -end |