From e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 17 Aug 2011 00:45:22 +0200 Subject: Bug 678970: Use $user and $cgi instead of Bugzilla->user and Bugzilla->cgi r=timello a=LpSolit --- createaccount.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'createaccount.cgi') diff --git a/createaccount.cgi b/createaccount.cgi index db0727add..d0437a021 100755 --- a/createaccount.cgi +++ b/createaccount.cgi @@ -38,7 +38,7 @@ use Bugzilla::Util; # Just in case someone already has an account, let them get the correct footer # on an error message. The user is logged out just after the account is # actually created. -Bugzilla->login(LOGIN_OPTIONAL); +my $user = Bugzilla->login(LOGIN_OPTIONAL); my $dbh = Bugzilla->dbh; my $cgi = Bugzilla->cgi; @@ -50,7 +50,7 @@ $vars->{'doc_section'} = 'myaccount.html'; print $cgi->header(); # If we're using LDAP for login, then we can't create a new account here. -unless (Bugzilla->user->authorizer->user_can_create_account) { +unless ($user->authorizer->user_can_create_account) { ThrowUserError("auth_cant_create_account"); } -- cgit v1.2.3-24-g4f1b