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();
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ class OtpToken extends Model
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'nokp','token','used','expired'
|
||||
'nokp','token','used','expired','kodcaw'
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user