Compare commits
6 Commits
5703015874
...
0.8.0
Author | SHA1 | Date | |
---|---|---|---|
4368aec1b1 | |||
bd91cdef0c
|
|||
1532cecedc
|
|||
3f21276ec5 | |||
c3bfd4f920 | |||
5ea5d4d0ba |
@@ -31,7 +31,7 @@ DB_DATABASE=captcha
|
|||||||
DB_USERNAME=captcha
|
DB_USERNAME=captcha
|
||||||
DB_PASSWORD=captcha_pass
|
DB_PASSWORD=captcha_pass
|
||||||
|
|
||||||
BROADCAST_DRIVER=log
|
BROADCAST_DRIVER=reverb
|
||||||
CACHE_DRIVER=redis
|
CACHE_DRIVER=redis
|
||||||
FILESYSTEM_DISK=local
|
FILESYSTEM_DISK=local
|
||||||
QUEUE_CONNECTION=redis
|
QUEUE_CONNECTION=redis
|
||||||
|
@@ -29,13 +29,21 @@ final class CreatedCaptchaLog implements ShouldBroadcast
|
|||||||
$link = route('captcha-tokens.edit', ['captcha_token' => $captchaLog->captcha->captcha_token_id], false);
|
$link = route('captcha-tokens.edit', ['captcha_token' => $captchaLog->captcha->captcha_token_id], false);
|
||||||
$title = $captchaLog->captcha->captchaToken->title;
|
$title = $captchaLog->captcha->captchaToken->title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$ip = $captchaLog->ip;
|
||||||
|
$userAgent = $captchaLog->user_agent;
|
||||||
|
if (Helpers::isDemoMode()) {
|
||||||
|
$ip = __('Demo Mode');
|
||||||
|
$userAgent = __('Demo Mode');
|
||||||
|
}
|
||||||
|
|
||||||
$this->captchaLog = [
|
$this->captchaLog = [
|
||||||
'created_at' => $captchaLog->created_at->format("d.m.Y H:i:s"),
|
'created_at' => $captchaLog->created_at->format("d.m.Y H:i:s"),
|
||||||
'link' => $link,
|
'link' => $link,
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'type' => $captchaLog->type->getTitle(),
|
'type' => $captchaLog->type->getTitle(),
|
||||||
'ip' => $captchaLog->ip,
|
'ip' => $ip,
|
||||||
'user_agent' => $captchaLog->user_agent,
|
'user_agent' => $userAgent,
|
||||||
'referer' => $captchaLog->referer,
|
'referer' => $captchaLog->referer,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@@ -25,8 +25,20 @@
|
|||||||
<p><strong>{{ $item->type->getTitle() }}</strong></p>
|
<p><strong>{{ $item->type->getTitle() }}</strong></p>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p><strong>IP:</strong> {{ $item->ip }}</p>
|
<p><strong>IP:</strong>
|
||||||
<p><strong>User Agent:</strong> {{ $item->user_agent }}</p>
|
@demo
|
||||||
|
<span style="border: 1px solid #ff1810; color: #ff1810; font-weight: bold; font-size: 18px; padding: 7px; text-align: center;">{{ __('Demo Mode') }}</span>
|
||||||
|
@else
|
||||||
|
{{ $item->ip }}
|
||||||
|
@endif
|
||||||
|
</p>
|
||||||
|
<p><strong>User Agent:</strong>
|
||||||
|
@demo
|
||||||
|
<span style="border: 1px solid #ff1810; color: #ff1810; font-weight: bold; font-size: 18px; padding: 7px; text-align: center;">{{ __('Demo Mode') }}</span>
|
||||||
|
@else
|
||||||
|
{{ $item->user_agent }}
|
||||||
|
@endif
|
||||||
|
</p>
|
||||||
<p><strong>referer:</strong> {{ $item->referer }}</p>
|
<p><strong>referer:</strong> {{ $item->referer }}</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Reference in New Issue
Block a user