Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-06-16 12:12:06 +0300
committerJames Lopez <james@jameslopez.es>2017-06-23 12:41:42 +0300
commit158550cf37cc2db9590f0212962f10ecc73082de (patch)
tree3b48192a0eda2b96cf7de3c3f705a60346e18026 /app/controllers/sessions_controller.rb
parentbf3a3f3652704fb261e6220e2199830ea22ec8d3 (diff)
added service in the rest of controllers and classes
Diffstat (limited to 'app/controllers/sessions_controller.rb')
-rw-r--r--app/controllers/sessions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index 0d8186dce02..f7d9d3c80c8 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -61,7 +61,7 @@ class SessionsController < Devise::SessionsController
return unless user && user.require_password?
token = user.generate_reset_token
- user.save
+ Users::UpdateService.new(user, user).execute
redirect_to edit_user_password_path(reset_password_token: token),
notice: "Please create a password for your new account."