From 251c19319a9fe909cbe7b48aa66da4c9d5e09717 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Thu, 3 Jul 2025 20:40:23 +0500 Subject: [PATCH] wip --- app/Helpers/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/helpers.php b/app/Helpers/helpers.php index bfa7192..80bd5ef 100644 --- a/app/Helpers/helpers.php +++ b/app/Helpers/helpers.php @@ -116,7 +116,7 @@ function sendSMS(string|int $phone, string|int $message) */ function sendSMSVerification(string|int $phone_number): ?Verification { - $phone_code = rand(10000, 99999); + $phone_code = rand(100000, 999999); $verification = Verification::where(['username' => $phone_number])->first(); $verification ? $verification->update(['code' => $phone_code]) : Verification::create(['username' => $phone_number, 'code' => $phone_code]);