AcidCat
Member
PHP:
$fileDir = $_SERVER['DOCUMENT_ROOT'];
require($fileDir . '/src/XF.php');
XF::start($fileDir);
$app = \XF::setupApp('XF\App');
$username = $_POST['username'];
$password = $_POST['password'];
$ip = $_POST['ipaddress'];
$i = $_POST['interface'];
$loginService = $app->service('XF:User\Login', $username, $ip);
$userValidate = $loginService->validate($password, $error);
After this how do I then get the user that just logged in so I can get their info?