Add more custom domain logs
This commit is contained in:
parent
a34ae4a65f
commit
0632793567
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue