Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
1533b97c
Commit
1533b97c
authored
Jun 29, 2009
by
bbaetz%acm.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 499103 - page_requires_login check uses undefined variable
r/a=mkanat
parent
cb0d7389
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Bugzilla.pm
Bugzilla.pm
+4
-3
No files found.
Bugzilla.pm
View file @
1533b97c
...
...
@@ -240,15 +240,16 @@ sub login {
my
$authorizer
=
new
Bugzilla::
Auth
();
$type
=
LOGIN_REQUIRED
if
$class
->
cgi
->
param
(
'GoAheadAndLogIn'
);
if
(
!
defined
$type
||
$type
==
LOGIN_NORMAL
)
{
$type
=
$class
->
params
->
{
'requirelogin'
}
?
LOGIN_REQUIRED
:
LOGIN_NORMAL
;
}
# Allow templates to know that we're in a page that always requires
# login.
if
(
$type
==
LOGIN_REQUIRED
)
{
$class
->
request_cache
->
{
page_requires_login
}
=
1
;
}
if
(
!
defined
$type
||
$type
==
LOGIN_NORMAL
)
{
$type
=
$class
->
params
->
{
'requirelogin'
}
?
LOGIN_REQUIRED
:
LOGIN_NORMAL
;
}
my
$authenticated_user
=
$authorizer
->
login
(
$type
);
# At this point, we now know if a real person is logged in.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment