Files
FloatAppGate/app/Services/ResetPassword.php
T
dev-chiefworks 1965f1c790 fix
2022-04-20 20:55:56 -04:00

36 lines
814 B
PHP

<?php
namespace App\Services;
use GuzzleHttp\Client as HTTPClient;
//use \\CoreServiceApi;
class ResetPassword extends CoreServiceApi
{
public static function procResetPassword($data)
{
/*
CRITICAL - 2022-04-20 19:46:44 --> username=>ses66181@gmail.com
CRITICAL - 2022-04-20 19:46:44 --> mode=>100
CRITICAL - 2022-04-20 19:46:44 --> reset_pin=>
CRITICAL - 2022-04-20 19:46:44 --> newpass=>
CRITICAL - 2022-04-20 19:46:44 --> reset_key=>
"email": "lviet@float.sg",
"mode":100
*/
$res =[];
switch($data['mode']){
case 100:
$data_json = "{\"email\":\"$data['email']\",\"mode\":100}";
$res = $this->NodeServiceApi('/user/reset-password', $data_json);
break;
}
return $res;
}
}