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
f32800e0
Commit
f32800e0
authored
Jun 07, 2003
by
bbaetz%acm.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 205463 - Tokens aren't canceled after a successful login.
patch by 'Randall M! Gee', r=bbaetz, a=justdave
parent
1d057f02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
DB.pm
Bugzilla/Auth/DB.pm
+1
-1
Token.pm
Bugzilla/Token.pm
+1
-1
Token.pm
Token.pm
+1
-1
No files found.
Bugzilla/Auth/DB.pm
View file @
f32800e0
...
...
@@ -71,7 +71,7 @@ sub authenticate {
# Now we know that the user has logged in successfully,
# so delete any password tokens for them
require
Token
;
Token::
DeletePasswordTokens
(
"user logged
in"
);
Token::
DeletePasswordTokens
(
$userid
,
"user_logged_
in"
);
# The user may have had their account disabled
return
(
AUTH_DISABLED
,
$userid
,
$disabledtext
)
...
...
Bugzilla/Token.pm
View file @
f32800e0
...
...
@@ -246,7 +246,7 @@ sub DeletePasswordTokens {
"WHERE userid=? AND tokentype='password'"
);
$sth
->
execute
(
$userid
);
while
(
my
$token
=
$sth
->
fetchrow_array
)
{
Token::
Cancel
(
$token
,
"user_logged_in"
);
Token::
Cancel
(
$token
,
$reason
);
}
}
...
...
Token.pm
View file @
f32800e0
...
...
@@ -246,7 +246,7 @@ sub DeletePasswordTokens {
"WHERE userid=? AND tokentype='password'"
);
$sth
->
execute
(
$userid
);
while
(
my
$token
=
$sth
->
fetchrow_array
)
{
Token::
Cancel
(
$token
,
"user_logged_in"
);
Token::
Cancel
(
$token
,
$reason
);
}
}
...
...
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