NASER fix minor issue
This commit is contained in:
@@ -120,8 +120,9 @@ class AuthController extends Controller
|
|||||||
|
|
||||||
public function register(Request $request)
|
public function register(Request $request)
|
||||||
{
|
{
|
||||||
if($this->Config('open_register') === 'false'){
|
$register = Setting::where('key', 'open_register')->first();
|
||||||
throw new UnprocessableEntityHttpException('امکان ثبتنام وجود ندارد.');
|
if($register->is_active == 0){
|
||||||
|
throw new UnprocessableEntityHttpException('امکان ثبت نام وجود ندارد.');
|
||||||
}
|
}
|
||||||
$data = $request->all();
|
$data = $request->all();
|
||||||
$data['type'] = 2;
|
$data['type'] = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user