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
This commit is contained in:
Eric Davis committed 2010-05-23 03:16:37 +00:00
1 parent 715c9d16ef
commit 908d44519c
5 files changed
+50 -5

No files matched your search

+1 -1
View File
@@ -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