Cyber1 0 Posted July 24, 2018 Share Posted July 24, 2018 hi, anyone can post external login for this IPS version?(IPS 4.3) IPS 4.2 work with the code below but not working on the latest version. require_once(dirname(__FILE__).'/../forums/init.php'); $IPSLogin = new \IPS\Login\Internal; $IPSLogin->init(); try { $member = $IPSLogin->authenticate(array('auth' => $_POST['username'], 'password' => $_POST['password'])); if ($member) { $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_login_key, $expire ); \IPS\Request::i()->setCookie( 'hasJS', true, $expire ); print '<html><head><meta http-equiv="refresh" content="0;URL=\''.$prev_url.'\'"></head></html>'; } } catch (Exception $e) { blahblah } Link to comment Share on other sites More sharing options...
Averax 0 Posted August 8, 2018 Share Posted August 8, 2018 123 Link to comment Share on other sites More sharing options...
Cyber1 0 Posted August 8, 2018 Author Share Posted August 8, 2018 5 hours ago, Averax said: 123 please dont spam,still waiting for an answer Link to comment Share on other sites More sharing options...
Asilian00 2 Posted August 8, 2018 Share Posted August 8, 2018 https://invisioncommunity.com/news/product-updates/43-sign-in-from-other-sites-using-oauth-r1058/ Have you tried this soluston? Any php error? Link to comment Share on other sites More sharing options...
wabbadah 0 Posted August 22, 2018 Share Posted August 22, 2018 There are some scripts that handles external logins but I don't know if they have been updates do be used on the latest version of IPS. I will get back to you if I find anything useful Link to comment Share on other sites More sharing options...
rsetbrasiltenologia 0 Posted August 22, 2018 Share Posted August 22, 2018 On 24/07/2018 at 09:10, Cyber1 said: oi, alguém pode postar login externo para esta versão IPS? (IPS 4.3) O IPS 4.2 trabalha com o código abaixo, mas não funciona na última versão. realmente não funciona, vou tentar mandar o codigo atualizado Quase sempre tem strings que não inetam Link to comment Share on other sites More sharing options...
Recommended Posts