aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-03-22 12:47:09 +0000
committerbbaetz%acm.org <>2003-03-22 12:47:09 +0000
commit681ce77bc0dc5828eae2bb48471db9e373437e4b (patch)
treea7c8ba0b1e070ea489c96246eca65fc7c36f6235 /createaccount.cgi
parentBug 195695 - Requesting a non-existant format results in an Internal Error (diff)
downloadbugzilla-681ce77bc0dc5828eae2bb48471db9e373437e4b.tar.gz
bugzilla-681ce77bc0dc5828eae2bb48471db9e373437e4b.tar.bz2
bugzilla-681ce77bc0dc5828eae2bb48471db9e373437e4b.zip
Bug 180642 - Move authentication code into a module
r=gerv, justdave a=justdave
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-xcreateaccount.cgi4
1 files changed, 2 insertions, 2 deletions
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