summaryrefslogtreecommitdiff
path: root/app/controllers/profiles/passwords_controller.rb
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-08-31 11:21:40 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-09-01 10:51:40 +0100
commit37383d9a9d9706008a7fa1d90079cb019681094b (patch)
treebf6189c482ff51d783edf7b1778c7eed89590080 /app/controllers/profiles/passwords_controller.rb
parentd546f7d36e6703bda430e2f50fe4e87a07ab48f8 (diff)
downloadgitlab-ce-37383d9a9d9706008a7fa1d90079cb019681094b.tar.gz
Rollsback changes made to signing_enabled.
Diffstat (limited to 'app/controllers/profiles/passwords_controller.rb')
-rw-r--r--app/controllers/profiles/passwords_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/profiles/passwords_controller.rb b/app/controllers/profiles/passwords_controller.rb
index c423761ab24..7beb52dd8e8 100644
--- a/app/controllers/profiles/passwords_controller.rb
+++ b/app/controllers/profiles/passwords_controller.rb
@@ -77,7 +77,7 @@ class Profiles::PasswordsController < Profiles::ApplicationController
end
def authorize_change_password!
- render_404 unless @user.allow_password_authentication?
+ render_404 if @user.ldap_user?
end
def user_params