From a340d8c957bb05b60a9b58ccfdfbcfd6015ea9fa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 13 Apr 2008 09:12:43 +0000 Subject: 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 --- app/controllers/account_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers/account_controller.rb') 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 -- cgit v1.2.3