mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Remove risky fix on PHPCsFixer + fix bad command interpretation
This commit is contained in:
parent
3b662c1153
commit
3f84622cbe
2 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ namespace controllers\internals;
|
|||
//Check for user
|
||||
$internal_user = new \controllers\internals\User($this->bdd);
|
||||
$user = $internal_user->check_credentials($decode_message['login'], $decode_message['password']);
|
||||
if (!$user || $user['id'] !== $id_user)
|
||||
if (!$user || (int) $user['id'] !== $id_user)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue