From 681ce77bc0dc5828eae2bb48471db9e373437e4b Mon Sep 17 00:00:00 2001 From: "bbaetz%acm.org" <> Date: Sat, 22 Mar 2003 12:47:09 +0000 Subject: Bug 180642 - Move authentication code into a module r=gerv, justdave a=justdave --- createaccount.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'createaccount.cgi') diff --git a/createaccount.cgi b/createaccount.cgi index 4ce347fcf..0550f42b9 100755 --- a/createaccount.cgi +++ b/createaccount.cgi @@ -40,11 +40,11 @@ use vars qw( ConnectToDatabase(); # If we're using LDAP for login, then we can't create a new account here. -if(Param('useLDAP')) { +unless (Bugzilla::Auth->can_edit) { # Just in case someone already has an account, let them get the correct # footer on the error message quietly_check_login(); - ThrowUserError("ldap_cant_create_account"); + ThrowUserError("auth_cant_create_account"); } # Clear out the login cookies. Make people log in again if they create an -- cgit v1.2.3-24-g4f1b