summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Token.pm
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-02-20 17:02:06 +0100
committermkanat%kerio.com <>2005-02-20 17:02:06 +0100
commitd7958942a691a719be4d3433b5a24817c8646f9a (patch)
tree179648890480c617db96828c6b2a705f74a04d2d /Bugzilla/Token.pm
parente547dd6d7b7b9a3c2135c56dd6b7a433743fd4b1 (diff)
downloadbugzilla-d7958942a691a719be4d3433b5a24817c8646f9a.tar.gz
bugzilla-d7958942a691a719be4d3433b5a24817c8646f9a.tar.xz
Bug 280502: Replace "INTERVAL" with Bugzilla::DB function call
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=justdave
Diffstat (limited to 'Bugzilla/Token.pm')
-rw-r--r--Bugzilla/Token.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Token.pm b/Bugzilla/Token.pm
index 4c70d4bad..73f074185 100644
--- a/Bugzilla/Token.pm
+++ b/Bugzilla/Token.pm
@@ -119,7 +119,8 @@ sub IssuePasswordToken {
LEFT JOIN tokens
ON tokens.userid = profiles.userid
AND tokens.tokentype = 'password'
- AND tokens.issuedate > DATE_SUB(NOW(), INTERVAL 10 MINUTE)
+ AND tokens.issuedate > DATE_SUB(NOW(), " .
+ $dbh->sql_interval('10 MINUTE') . ")
WHERE login_name = $quotedloginname");
my ($userid, $toosoon) = &::FetchSQLData();