mirror of https://github.com/IoTcat/ushio-auth.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
463 B
24 lines
463 B
3 years ago
|
<?php
|
||
|
|
||
|
include './functions.php';
|
||
|
|
||
|
$hash = $_GET['hash'];
|
||
|
$token = $_GET['token'];
|
||
|
if(!isset($hash) || !isset($token)) die();
|
||
|
|
||
|
|
||
|
header('Access-Control-Allow-Origin:https://user.yimian.xyz');
|
||
|
header("Content-Type: application/json;charset=utf-8");
|
||
|
|
||
|
$cnn = db__connect();
|
||
|
|
||
|
db__pushData($cnn, "token", array(
|
||
|
"state" => 0,
|
||
|
"updated_at" => date("Y-m-d H:i:s")
|
||
|
), array(
|
||
|
"token" => $token,
|
||
|
"hash" => $hash
|
||
|
));
|
||
|
|
||
|
echo json_encode(array("status"=>true));
|