Skip to content

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.php
index 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 known
if (!$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.vue
index 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 -= 1
window.scrollTo({ top: 0, behavior: 'smooth' })
return false
},
nextPage () {
- console.log('nextPage',this.currentFieldGroupIndex)
this.currentFieldGroupIndex += 1
window.scrollTo({ top: 0, behavior: 'smooth' })
return false