This commit is contained in:
afiq
2021-02-01 08:38:39 +08:00
parent 586c63ef56
commit 578e55263e
3 changed files with 11 additions and 1 deletions
+9
View File
@@ -31,6 +31,15 @@ class OtpController extends Controller
return response()->json($otp);
}
public function getOtpUsed($nokp){
$current = Carbon::now();
$current = new Carbon();
$otp = OtpToken::on('mysql7')->where([['nokp','=',$nokp],['used','=',1]])->get();
return response()->json($otp);
}
public function checkToken($otp_token){
$current = Carbon::now();
$current = new Carbon();