From 189f4f38273853e1542d34a1c2bf159d35a75114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Tue, 9 Aug 2022 19:06:36 +0300 Subject: [PATCH] wizard api_key update check real key issue solved.. --- app/Http/Requests/Wizard/Company.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Requests/Wizard/Company.php b/app/Http/Requests/Wizard/Company.php index bfe14146f..775f93f4e 100644 --- a/app/Http/Requests/Wizard/Company.php +++ b/app/Http/Requests/Wizard/Company.php @@ -45,6 +45,10 @@ class Company extends FormRequest $rules['api_key'] = 'string|check'; } + if (setting('apps.api_key', false) && (setting('apps.api_key', false) != $this->request->get('api_key'))) { + $rules['api_key'] = 'string|check'; + } + return $rules; }