From 03d44e027fba5601c64e05820dc0a03900048c98 Mon Sep 17 00:00:00 2001 From: Amirmahdi Nourkazemi Date: Mon, 8 Sep 2025 17:26:25 +0330 Subject: [PATCH] fix: otp count 4 fixed --- app/Http/Controllers/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 82aa73e..0ea8389 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -94,7 +94,7 @@ public function register(Request $request) // Send email verification if email exists if (isset($data['email'])) { - $code = rand(100000, 999999); + $code = rand(1000, 9999); \DB::table('email_verifications')->insert([ 'user_id' => $user->id, 'code' => $code,