From 4a3b8fe5c08d29de2ba5039c213b24207a2f9792 Mon Sep 17 00:00:00 2001 From: "ehsan.moradi" Date: Sun, 11 May 2025 17:31:08 +0330 Subject: [PATCH] fix --- packages/Auth/SendsPasswordResetEmails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Auth/SendsPasswordResetEmails.php b/packages/Auth/SendsPasswordResetEmails.php index b05de687..aaed7b64 100644 --- a/packages/Auth/SendsPasswordResetEmails.php +++ b/packages/Auth/SendsPasswordResetEmails.php @@ -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' , [