NASER dynamic register for customers

This commit is contained in:
2026-03-02 15:51:58 +03:30
parent c2f4495a01
commit 607c9114af
+3 -1
View File
@@ -120,7 +120,9 @@ class AuthController extends Controller
public function register(Request $request)
{
if($this->Config('open_register') === 'false'){
throw new UnprocessableEntityHttpException('امکان ثبتنام وجود ندارد.');
}
$data = $request->all();
$data['type'] = 2;
if (isset($data['referral_id'])) {