Skip to content

Commit f188543

Browse files
committed
wip
1 parent 9ccdff4 commit f188543

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Http/Controllers/OtpVerificationController.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,7 @@ public function resend()
4040

4141
$service = app(OtpService::class);
4242

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-
}
43+
$service->generateOtpAndSend($user);
5244

5345
return back()->with('status', 'The OTP has been resend.');
5446
}

0 commit comments

Comments
 (0)