otp
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user