mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-17 16:21:25 +02:00
->select('login_token')
This commit is contained in:
parent
b32e2901af
commit
0dc79cd5c4
1 changed files with 1 additions and 2 deletions
|
@ -114,7 +114,6 @@ class Admin
|
||||||
'httponly' => true,
|
'httponly' => true,
|
||||||
'samesite' => 'Lax',
|
'samesite' => 'Lax',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
unset($_COOKIE['aid']);
|
unset($_COOKIE['aid']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -140,7 +139,7 @@ class Admin
|
||||||
|
|
||||||
public static function validateToken($aid, $cookieToken)
|
public static function validateToken($aid, $cookieToken)
|
||||||
{
|
{
|
||||||
$query = ORM::for_table('tbl_users')->where('id', $aid)->findOne();
|
$query = ORM::for_table('tbl_users')->select('login_token')->where('id', $aid)->findOne();
|
||||||
$storedToken = $query->login_token;
|
$storedToken = $query->login_token;
|
||||||
|
|
||||||
if (empty($storedToken)) {
|
if (empty($storedToken)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue