diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-16 19:19:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-16 19:19:10 +0000 |
commit | 49eb65e92522bcd9c0c9f04bdbcd8466fc95e8d0 (patch) | |
tree | 55d2e774f2ea6e8574bc109633845b10b4c310ea /app/controllers/auth_sources_controller.rb | |
parent | 4c509c9423a11feb665e98e91661fc0a06a043a1 (diff) | |
download | redmine-49eb65e92522bcd9c0c9f04bdbcd8466fc95e8d0.tar.gz redmine-49eb65e92522bcd9c0c9f04bdbcd8466fc95e8d0.zip |
Added LDAPS support migration and fixed connection test flash messages.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@845 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/auth_sources_controller.rb')
-rw-r--r-- | app/controllers/auth_sources_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/auth_sources_controller.rb b/app/controllers/auth_sources_controller.rb index 86b58d365..b830f1970 100644 --- a/app/controllers/auth_sources_controller.rb +++ b/app/controllers/auth_sources_controller.rb @@ -65,10 +65,10 @@ class AuthSourcesController < ApplicationController @auth_method = AuthSource.find(params[:id]) begin @auth_method.test_connection + flash[:notice] = l(:notice_successful_connection) rescue => text - flash[:notice] = text + flash[:error] = "Unable to connect (#{text})" end - flash[:notice] ||= l(:notice_successful_connection) redirect_to :action => 'list' end |