cleanup
This commit is contained in:
parent
ccc7fa6fe9
commit
befc5b9276
@ -47,7 +47,6 @@ class Token Extends Base {
|
|||||||
$expiretime = $this->tokentype->getExpiration($type);
|
$expiretime = $this->tokentype->getExpiration($type);
|
||||||
$ctimedata = new DateTime($this->getCreationTime($token));
|
$ctimedata = new DateTime($this->getCreationTime($token));
|
||||||
$checktime = $ctimedata->getTimestamp() + $expiretime;
|
$checktime = $ctimedata->getTimestamp() + $expiretime;
|
||||||
$now = time();
|
|
||||||
if ($checktime >= $now && $checkTimeExplicitly || !$checkTimeExplicitly) {
|
if ($checktime >= $now && $checkTimeExplicitly || !$checkTimeExplicitly) {
|
||||||
if ($checkTimeExplicitly) {
|
if ($checkTimeExplicitly) {
|
||||||
$stmt = $this->mysqli->prepare("SELECT * FROM $this->table WHERE account_id = ? AND token = ? AND type = ? AND ? >= UNIX_TIMESTAMP() LIMIT 1");
|
$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