From 37722eca39874bb6abdcd120e3e458bd62dea62b Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 5 Jul 2017 11:43:18 -0700 Subject: Bug 1377933 - Remove trailing whitespace from all perl files --- Bugzilla/Token.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Bugzilla/Token.pm') diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm index 7b5cb9bcf..c6288f491 100644 --- a/Bugzilla/Token.pm +++ b/Bugzilla/Token.pm @@ -176,7 +176,7 @@ sub IssuePasswordToken { my $too_soon = $dbh->selectrow_array( 'SELECT 1 FROM tokens WHERE userid = ? AND tokentype = ? - AND issuedate > ' + AND issuedate > ' . $dbh->sql_date_math('NOW()', '-', 10, 'MINUTE'), undef, ($user->id, 'password')); @@ -196,7 +196,7 @@ sub IssuePasswordToken { $vars->{'timezone'} = $user->timezone; my $message = ""; - $template->process("account/password/forgotten-password.txt.tmpl", + $template->process("account/password/forgotten-password.txt.tmpl", $vars, \$message) || ThrowTemplateError($template->error()); @@ -290,7 +290,7 @@ sub CleanTokenTable { } sub GenerateUniqueToken { - # Generates a unique random token. Uses generate_random_password + # Generates a unique random token. Uses generate_random_password # for the tokens themselves and checks uniqueness by searching for # the token in the "tokens" table. Gives up if it can't come up # with a token after about one hundred tries. @@ -381,7 +381,7 @@ sub DeletePasswordTokens { } } -# Returns an email change token if the user has one. +# Returns an email change token if the user has one. sub HasEmailChangeToken { my $userid = shift; my $dbh = Bugzilla->dbh; -- cgit v1.2.3-24-g4f1b