Skip to content

Commit e9a08e8

Browse files
committed
wip
1 parent b694587 commit e9a08e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Http/Controllers/OtpVerificationController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public function send()
2424

2525
$key = $service->generateKey($user);
2626

27-
if (request()->integer('otp-code') === (int) Session::get($key)) {
28-
Cache::put($service->generateVerifiedKey($user), true);
27+
if (request()->integer('otp-code') === (int)Session::get($key)) {
28+
Cache::forever($service->generateVerifiedKey($user), true);
2929
Session::forget($key);
3030

3131
return redirect()->intended('/dashboard');
@@ -44,7 +44,7 @@ public function resend()
4444
$otp = Session::get($service->generateKey($user));
4545

4646
if (empty($otp)) {
47-
Cache::put($service->generateVerifiedKey($user), true);
47+
Cache::forever($service->generateKey($user), true);
4848
}
4949

5050
$class = config('otp.notification');

0 commit comments

Comments
 (0)