thanks, eclipse
This commit is contained in:
parent
befc5b9276
commit
11b8b554f1
@ -47,6 +47,7 @@ class Token Extends Base {
|
||||
$expiretime = $this->tokentype->getExpiration($type);
|
||||
$ctimedata = new DateTime($this->getCreationTime($token));
|
||||
$checktime = $ctimedata->getTimestamp() + $expiretime;
|
||||
$now = time();
|
||||
if ($checktime >= $now && $checkTimeExplicitly || !$checkTimeExplicitly) {
|
||||
if ($checkTimeExplicitly) {
|
||||
$stmt = $this->mysqli->prepare("SELECT * FROM $this->table WHERE account_id = ? AND token = ? AND type = ? AND ? >= UNIX_TIMESTAMP() LIMIT 1");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user