We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ccdff4 commit f188543Copy full SHA for f188543
src/Http/Controllers/OtpVerificationController.php
@@ -40,15 +40,7 @@ public function resend()
40
41
$service = app(OtpService::class);
42
43
- $otp = Session::get($service->generateKey($user));
44
-
45
- if (empty($otp)) {
46
- $service->generateOtpAndSend($user);
47
- } else {
48
- $class = config('otp.notification');
49
50
- $user->notify(new $class($otp));
51
- }
+ $service->generateOtpAndSend($user);
52
53
return back()->with('status', 'The OTP has been resend.');
54
}
0 commit comments