Косяк.
This commit is contained in:
parent
d1be4995e2
commit
dcc6a1337c
@ -31,7 +31,7 @@ if(!empty($user->info)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($data->token) || !password_verify(
|
if (!isset($data->token) || !password_verify(
|
||||||
$training->getDatabaseData()->api_token . $data->time . $user->info['id'],
|
$training->getDatabaseData()['api_token'] . $data->time . $user->info['id'],
|
||||||
$data->token
|
$data->token
|
||||||
)) {
|
)) {
|
||||||
http_response_code(401);
|
http_response_code(401);
|
||||||
|
Loading…
Reference in New Issue
Block a user