Jump to content

External login issue with 4.2.1


Recommended Posts


The users were able to log in IPS via a third party script which was, basically:

$IPSLogin = new \IPS\Login\Internal;

$member = $IPSLogin->authenticate(array('auth' => $_POST['username'], 'password' => $_POST['password']));

$expire = new \IPS\DateTime;
$expire->add( new \DateInterval( 'P7D' ) );
\IPS\Request::i()->setCookie( 'member_id', $member->member_id, $expire );
\IPS\Request::i()->setCookie( 'pass_hash', $member->member_pass_hash, $expire );
\IPS\Request::i()->setCookie( 'hasJS', true, $expire );

This does not work anymore since the 4.2.1 upgrade.

I noticed that pass_hash cookie is not longer used, but a new cookie is set after login with IPS: login_key

As the login_key does not seem to be part of the $member object, do you know how can I set that cookie?

Thanks for your help.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...