Friendly response when the LDAP connection fails.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8911 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-02-19 18:13:46 +00:00
parent 59c2530001
commit 3e3d7c8d4f
4 changed files with 19 additions and 2 deletions
+3
View File
@@ -29,6 +29,9 @@ class AccountController < ApplicationController
else
authenticate_user
end
rescue AuthSourceException => e
logger.error "An error occured when authenticating #{params[:username]}: #{e.message}"
render_error :message => e.message
end
# Log out current user and redirect to welcome page