From b2935702ccd90d5e0216e788ef00db11c9e8ef79 Mon Sep 17 00:00:00 2001 From: Amirmahdi Nourkazemi Date: Mon, 22 Sep 2025 08:25:54 +0330 Subject: [PATCH] feat: method default link --- app/Http/Controllers/UserController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index f44115f..212232f 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -147,7 +147,7 @@ public function resendEmailVerification(Request $request) 'package_name' => 'string|required', ]); - $method = $data['method'] ?? 'code'; + $method = $data['method'] ?? 'link'; $packageNameValue = $data['package_name']; unset($data['package_name']); @@ -209,7 +209,7 @@ public function register(Request $request) 'method' => 'string|in:code,link|nullable' ]); - $method = $data['method'] ?? 'code'; + $method = $data['method'] ?? 'link'; unset($data['method']); // Extract and remove package_name