I'm trying to extend
Code:
Read more
Читать далее...
XF\Service\User
with something like the following.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
Читать далее...