all customer from pargar fixing 3
This commit is contained in:
@@ -193,7 +193,7 @@ class AuthController extends Controller
|
||||
} while (Customer::where('referral_id', $uniqueId)->exists());
|
||||
$data['referral_id'] = $uniqueId;
|
||||
|
||||
if (isset($data['n_code']) && $cfg->getBool('register_jibit_verify', false)) {
|
||||
if (isset($data['n_code']) && $cfg->isRegisterJibitVerifyEnabled()) {
|
||||
$existing = Customer::where('n_code', $data['n_code'])->first();
|
||||
if (!empty($existing)) {
|
||||
return response()->json(['message' => 'کد ملی تکراری است'], 422);
|
||||
@@ -247,7 +247,7 @@ class AuthController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
if ($cfg->getBool('register_jibit_verify', false) && isset($customer->is_legal)) {
|
||||
if ($cfg->isRegisterJibitVerifyEnabled() && isset($customer->is_legal)) {
|
||||
$message = $customer->is_legal === 1
|
||||
? 'احرازهویت برای ' . $customer->name . ' با کد ' . $customer->id . ' انجام شد.'
|
||||
: 'احرازهویت برای ' . $customer->name . ' با کد ' . $customer->id . ' تأیید نشد لطفا از پنل ادمین اقدام فرمایید.';
|
||||
|
||||
Reference in New Issue
Block a user