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
cbef267d
Commit
cbef267d
authored
Mar 18, 2004
by
justdave%syndicomm.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 237864: clean up leftovers from the bug 192516 checkin (some occurances of Token got missed)
r= gerv, a= justdave
parent
786d40c1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
Auth.pm
Bugzilla/Auth.pm
+1
-1
DB.pm
Bugzilla/Auth/DB.pm
+2
-2
Token.pm
Bugzilla/Token.pm
+2
-2
token.cgi
token.cgi
+3
-3
No files found.
Bugzilla/Auth.pm
View file @
cbef267d
...
...
@@ -175,7 +175,7 @@ argument is a string, not a tag.
This determines if the user's account details can be modified. If this
method returns a C<true> value, then accounts can be created and modified
through the Bugzilla user interface. Forgotten passwords can also be
retrieved through the L<Token interface|Token>.
retrieved through the L<Token interface|
Bugzilla::
Token>.
=back
...
...
Bugzilla/Auth/DB.pm
View file @
cbef267d
...
...
@@ -50,8 +50,8 @@ sub authenticate {
# The user's credentials are okay, so delete any outstanding
# password tokens they may have generated.
require
Token
;
Token::
DeletePasswordTokens
(
$userid
,
"user_logged_in"
);
require
Bugzilla::
Token
;
Bugzilla::
Token::
DeletePasswordTokens
(
$userid
,
"user_logged_in"
);
# Account may have been disabled
my
$disabledtext
=
$class
->
get_disabled
(
$userid
);
...
...
Bugzilla/Token.pm
View file @
cbef267d
...
...
@@ -26,7 +26,7 @@
# Make it harder for us to do dangerous things in Perl.
use
strict
;
# Bundle the functions in this file together into the "Token" package.
# Bundle the functions in this file together into the "
Bugzilla::
Token" package.
package
Bugzilla::
Token
;
use
Bugzilla::
Config
;
...
...
@@ -247,7 +247,7 @@ sub DeletePasswordTokens {
"WHERE userid=? AND tokentype='password'"
);
$sth
->
execute
(
$userid
);
while
(
my
$token
=
$sth
->
fetchrow_array
)
{
Token::
Cancel
(
$token
,
$reason
);
Bugzilla::
Token::
Cancel
(
$token
,
$reason
);
}
}
...
...
token.cgi
View file @
cbef267d
...
...
@@ -157,7 +157,7 @@ exit;
################################################################################
sub
requestChangePassword
{
Token::
IssuePasswordToken
(
$cgi
->
param
(
'loginname'
));
Bugzilla::
Token::
IssuePasswordToken
(
$cgi
->
param
(
'loginname'
));
$vars
->
{
'message'
}
=
"password_change_request"
;
...
...
@@ -236,8 +236,8 @@ sub changeEmail {
# The new email address should be available as this was
# confirmed initially so cancel token if it is not still available
if
(
!
ValidateNewUser
(
$new_email
,
$old_email
))
{
$vars
->
{
'email'
}
=
$new_email
;
# Needed for Token::Cancel's mail
Token::
Cancel
(
$::token
,
"account_exists"
);
$vars
->
{
'email'
}
=
$new_email
;
# Needed for
Bugzilla::
Token::Cancel's mail
Bugzilla::
Token::
Cancel
(
$::token
,
"account_exists"
);
ThrowUserError
(
"account_exists"
,
{
email
=>
$new_email
}
);
}
...
...
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