Add more custom domain logs

This commit is contained in:
Julien Nahum 2024-01-24 20:48:59 +01:00
parent a34ae4a65f
commit 0632793567
2 changed files with 8 additions and 2 deletions

View File

@ -24,6 +24,10 @@ class CustomDomainRestriction
$customDomain = $request->header(self::CUSTOM_DOMAIN_HEADER); $customDomain = $request->header(self::CUSTOM_DOMAIN_HEADER);
if (!preg_match(CustomDomainRequest::CUSTOM_DOMAINS_REGEX, $customDomain)) { if (!preg_match(CustomDomainRequest::CUSTOM_DOMAINS_REGEX, $customDomain)) {
\Log::warning('Invalid domain', [
'domain' => $customDomain,
'ip' => $request->ip(),
]);
return response()->json([ return response()->json([
'success' => false, 'success' => false,
'message' => 'Invalid domain', 'message' => 'Invalid domain',
@ -39,6 +43,10 @@ class CustomDomainRestriction
// Check if domain is known // Check if domain is known
if (!$workspace = Workspace::whereJsonContains('custom_domains',$customDomain)->first()) { if (!$workspace = Workspace::whereJsonContains('custom_domains',$customDomain)->first()) {
\Log::warning('Unknown domain', [
'domain' => $customDomain,
'ip' => $request->ip(),
]);
return response()->json([ return response()->json([
'success' => false, 'success' => false,
'message' => 'Unknown domain', 'message' => 'Unknown domain',

View File

@ -377,13 +377,11 @@ export default {
this.dataForm = useForm(formData) this.dataForm = useForm(formData)
}, },
previousPage () { previousPage () {
console.log('preivousPage', this.currentFieldGroupIndex)
this.currentFieldGroupIndex -= 1 this.currentFieldGroupIndex -= 1
window.scrollTo({ top: 0, behavior: 'smooth' }) window.scrollTo({ top: 0, behavior: 'smooth' })
return false return false
}, },
nextPage () { nextPage () {
console.log('nextPage',this.currentFieldGroupIndex)
this.currentFieldGroupIndex += 1 this.currentFieldGroupIndex += 1
window.scrollTo({ top: 0, behavior: 'smooth' }) window.scrollTo({ top: 0, behavior: 'smooth' })
return false return false