diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-05-23 03:16:37 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-05-23 03:16:37 +0000 |
commit | 908d44519c410db2ef841c72e501a6c198051b43 (patch) | |
tree | d3cdca7c8028f2ad4c9842f1cce683d9304862d8 /app/controllers/my_controller.rb | |
parent | 715c9d16ef2c2effbc614dace8b50d145e703b80 (diff) | |
download | redmine-908d44519c410db2ef841c72e501a6c198051b43.tar.gz redmine-908d44519c410db2ef841c72e501a6c198051b43.zip |
Allow AuthSources to control if they allow password changes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3745 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/my_controller.rb')
-rw-r--r-- | app/controllers/my_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index f68675991..f637b49b6 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -77,7 +77,7 @@ class MyController < ApplicationController # Manage user's password def password @user = User.current - if @user.auth_source_id + unless @user.change_password_allowed? flash[:error] = l(:notice_can_t_change_password) redirect_to :action => 'account' return |