Upload
This commit is contained in:
@@ -29,7 +29,7 @@ if (!is_null($token)) {
|
||||
$stmt->close();
|
||||
$mysqli->close();
|
||||
header('Content-Type: application/json');
|
||||
echo '{"success":"' . $response['success'] . '", "isAuthenticated":' . $response['success'] . ', "token":"'. $response['token'] .'", "expires":' . $response['expires'] . ', "message":"' . $response['message'] . '"' . '}';
|
||||
echo '{"success":"' . $response['success'] . '", "isAuthenticated":' . $response['success'] . ', "token":"'. $response['token'] .'", "expires":' . $response['expires'] . ', "message":"' . $response['message'] . '"}';
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,8 @@ if ($result->num_rows > 0) {
|
||||
$stmt->close();
|
||||
$mysqli->close();
|
||||
|
||||
|
||||
// Return JSON response
|
||||
header('Content-Type: application/json');
|
||||
echo '{"success":"' . $response['success'] . '", "isAuthenticated":' . $response['success'] . ', "token":"'. $response['token'] .'", "expires":' . $response['expires'] . ', "message":"' . $response['message'] . '"' . '}';
|
||||
echo '{"success":"' . $response['success'] . '", "isAuthenticated":' . $response['success'] . ', "token":"'. $response['token'] .'", "expires":' . $response['expires'] . ', "message":"' . $response['message'] . '"}';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user