From aa9c60b19b96845c473b16213522dd97708ec171 Mon Sep 17 00:00:00 2001 From: Naser moghbel Date: Mon, 2 Mar 2026 16:06:05 +0330 Subject: [PATCH] NASER fix minor issue --- app/Http/Controllers/Auth/AuthController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Auth/AuthController.php b/app/Http/Controllers/Auth/AuthController.php index 9114cfb..736de18 100644 --- a/app/Http/Controllers/Auth/AuthController.php +++ b/app/Http/Controllers/Auth/AuthController.php @@ -120,8 +120,9 @@ class AuthController extends Controller public function register(Request $request) { - if($this->Config('open_register') === 'false'){ - throw new UnprocessableEntityHttpException('امکان ثبتنام وجود ندارد.'); + $register = Setting::where('key', 'open_register')->first(); + if($register->is_active == 0){ + throw new UnprocessableEntityHttpException('امکان ثبت نام وجود ندارد.'); } $data = $request->all(); $data['type'] = 2;