Обучение #39
@ -31,7 +31,7 @@ if(!empty($user->info)) {
|
||||
}
|
||||
|
||||
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
|
||||
)) {
|
||||
http_response_code(401);
|
||||
|
Loading…
Reference in New Issue
Block a user