Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Jibeji Posted July 28, 2017 Posted July 28, 2017 Hello, The users were able to log in IPS via a third party script which was, basically: require_once(dirname(__FILE__).'/forums/init.php'); $IPSLogin = new \IPS\Login\Internal; $IPSLogin->init(); $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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.