mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Fix controllo campo enabled per autenticazione tramite token
This commit is contained in:
parent
22dff2511d
commit
d9f9461e9f
@ -55,7 +55,7 @@ class Auth extends \Util\Singleton
|
|||||||
if (API::isAPIRequest()) {
|
if (API::isAPIRequest()) {
|
||||||
$token = API::getRequest()['token'];
|
$token = API::getRequest()['token'];
|
||||||
|
|
||||||
$id = $database->fetchArray('SELECT `id_utente` FROM `zz_tokens` WHERE `token` = '.prepare($token))[0]['id_utente'];
|
$id = $database->fetchArray('SELECT `id_utente` FROM `zz_tokens` WHERE `enabled` = 1 AND `token` = '.prepare($token))[0]['id_utente'];
|
||||||
}
|
}
|
||||||
// Controllo sulla sessione attiva
|
// Controllo sulla sessione attiva
|
||||||
elseif (!empty($_SESSION['id_utente'])) {
|
elseif (!empty($_SESSION['id_utente'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user