Beautiful Open-Source Form Builder
Add more custom domain logs
Julien Nahum06327935670b
diff --git a/app/Http/Middleware/CustomDomainRestriction.php b/app/Http/Middleware/CustomDomainRestriction.phpindex 31f4b0e8c..ecfb24c97 100644--- a/app/Http/Middleware/CustomDomainRestriction.php+++ b/app/Http/Middleware/CustomDomainRestriction.php@@ -24,6 +24,10 @@ class CustomDomainRestriction$customDomain = $request->header(self::CUSTOM_DOMAIN_HEADER);if (!preg_match(CustomDomainRequest::CUSTOM_DOMAINS_REGEX, $customDomain)) {+ \Log::warning('Invalid domain', [+ 'domain' => $customDomain,+ 'ip' => $request->ip(),+ ]);return response()->json(['success' => false,'message' => 'Invalid domain',@@ -39,6 +43,10 @@ class CustomDomainRestriction// Check if domain is knownif (!$workspace = Workspace::whereJsonContains('custom_domains',$customDomain)->first()) {+ \Log::warning('Unknown domain', [+ 'domain' => $customDomain,+ 'ip' => $request->ip(),+ ]);return response()->json(['success' => false,'message' => 'Unknown domain',diff --git a/client/components/open/forms/OpenForm.vue b/client/components/open/forms/OpenForm.vueindex 644730329..857dd2d70 100644--- a/client/components/open/forms/OpenForm.vue+++ b/client/components/open/forms/OpenForm.vue@@ -377,13 +377,11 @@ export default {this.dataForm = useForm(formData)},previousPage () {- console.log('preivousPage', this.currentFieldGroupIndex)this.currentFieldGroupIndex -= 1window.scrollTo({ top: 0, behavior: 'smooth' })return false},nextPage () {- console.log('nextPage',this.currentFieldGroupIndex)this.currentFieldGroupIndex += 1window.scrollTo({ top: 0, behavior: 'smooth' })return false