Skip to content

Commit a852cb0

Browse files
committed
Mark otp as sent
1 parent 065b868 commit a852cb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Support/OtpService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public function generateOtpAndSend(User $user)
2222
$class = config('otp.notification');
2323

2424
$user->notify(new $class($otp));
25+
26+
Session::put($this->generateOtpSentKey($user), true);
2527
}
2628

2729
public function generateRandomOtp(): int

0 commit comments

Comments
 (0)