diff options
author | bbaetz%acm.org <> | 2003-03-22 12:47:09 +0000 |
---|---|---|
committer | bbaetz%acm.org <> | 2003-03-22 12:47:09 +0000 |
commit | 681ce77bc0dc5828eae2bb48471db9e373437e4b (patch) | |
tree | a7c8ba0b1e070ea489c96246eca65fc7c36f6235 /createaccount.cgi | |
parent | Bug 195695 - Requesting a non-existant format results in an Internal Error (diff) | |
download | bugzilla-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-x | createaccount.cgi | 4 |
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 |