feat: method default link

This commit is contained in:
2025-09-22 08:25:54 +03:30
parent afd7e349d4
commit b2935702cc
+2 -2
View File
@@ -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