Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysanthos committed Dec 5, 2022
1 parent 9ccdff4 commit f188543
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Http/Controllers/OtpVerificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,7 @@ public function resend()

$service = app(OtpService::class);

$otp = Session::get($service->generateKey($user));

if (empty($otp)) {
$service->generateOtpAndSend($user);
} else {
$class = config('otp.notification');

$user->notify(new $class($otp));
}
$service->generateOtpAndSend($user);

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

0 comments on commit f188543

Please sign in to comment.