diff options
author | bbaetz%acm.org <> | 2003-03-22 13:47:09 +0100 |
---|---|---|
committer | bbaetz%acm.org <> | 2003-03-22 13:47:09 +0100 |
commit | 681ce77bc0dc5828eae2bb48471db9e373437e4b (patch) | |
tree | a7c8ba0b1e070ea489c96246eca65fc7c36f6235 /createaccount.cgi | |
parent | 3f1f4e57809b2e3f42e637a86646e806470faec5 (diff) | |
download | bugzilla-681ce77bc0dc5828eae2bb48471db9e373437e4b.tar.gz bugzilla-681ce77bc0dc5828eae2bb48471db9e373437e4b.tar.xz |
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 |