This commit is contained in:
ehsan.moradi
2025-05-11 17:31:08 +03:30
parent 2e59726bce
commit 4a3b8fe5c0
+1 -1
View File
@@ -60,7 +60,7 @@ trait SendsPasswordResetEmails
$userModel = User::where('cell_number', $request->cell_number)->where('status', 'Active');
$user = $userModel->first();
if ($user) {
$code = rand(10000000, 99999999);
$code = rand(100000, 999999);
\Cache::put($code, $user->id, Carbon::now()->addMinutes(30));
SmsNotification::to( $userModel )->isSystematic()->send(
trans( 'sms.reset_password' , [