summaryrefslogtreecommitdiff
path: root/app/controllers/profiles
diff options
context:
space:
mode:
authorCarlos Ribeiro <mail@carlosribeiro.me>2016-08-08 11:03:30 -0300
committerCarlos Ribeiro <mail@carlosribeiro.me>2016-08-08 13:55:57 -0300
commited63ead22aa9fd9fe509f3bebd73223b4ff8b8c5 (patch)
tree739a7e68954e27c635474dc66a28eaef613d61f8 /app/controllers/profiles
parent59ce1af53b8d25d1b4ae8b6e59f069c5147ca572 (diff)
downloadgitlab-ce-ed63ead22aa9fd9fe509f3bebd73223b4ff8b8c5.tar.gz
Avoid to show the original password field when password is automatically seted
Diffstat (limited to 'app/controllers/profiles')
-rw-r--r--app/controllers/profiles/passwords_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/profiles/passwords_controller.rb b/app/controllers/profiles/passwords_controller.rb
index c780e0983f9..6217ec5ecef 100644
--- a/app/controllers/profiles/passwords_controller.rb
+++ b/app/controllers/profiles/passwords_controller.rb
@@ -50,6 +50,7 @@ class Profiles::PasswordsController < Profiles::ApplicationController
flash[:notice] = "Password was successfully updated. Please login with it"
redirect_to new_user_session_path
else
+ @user.reload
render 'edit'
end
end