diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-04-13 09:12:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-04-13 09:12:43 +0000 |
commit | a340d8c957bb05b60a9b58ccfdfbcfd6015ea9fa (patch) | |
tree | bc690b01f356e2c99b62c43ca3b0b04a318a8ca0 /app/controllers/account_controller.rb | |
parent | 8eb86396e195e040658b4f3b685072e9bd5cc572 (diff) | |
download | redmine-a340d8c957bb05b60a9b58ccfdfbcfd6015ea9fa.tar.gz redmine-a340d8c957bb05b60a9b58ccfdfbcfd6015ea9fa.zip |
Better error message and AR errors in log for failed LDAP on-the-fly user creation (closes #932, #1042).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1345 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/account_controller.rb')
-rw-r--r-- | app/controllers/account_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index e719e8c9b..b9224c158 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -56,6 +56,8 @@ class AccountController < ApplicationController flash.now[:error] = l(:notice_account_invalid_creditentials) end end + rescue User::OnTheFlyCreationFailure + flash.now[:error] = 'Redmine could not retrieve the required information from the LDAP to create your account. Please, contact your Redmine administrator.' end # Log out current user and redirect to welcome page |