ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,761
- Points
- 823
Reputation:
I'm trying to extend
Code:
Read more
Continue reading...
XF\Service\User
with something like the following.Code:
Code:
<?php
namespace OzzModz\LoginLogX\XF\Service\User;
use XF\Entity\User;
use function strlen;
class Login extends XFCP_Login
{
public function validate($password, &$error = null)
{
// Set Parent
$parent = validate($password, $error);
// Let's Get The User's IP
if (!empty($_SERVER['HTTP_CLIENT_IP']))
{
$ip =...
Read more
Continue reading...