Jump to content

How to log into the forums through your website using IPS Connect


KenuFHR

Recommended Posts

Hi,

 

My colleague and I are working on a website and our goal is to make the site and the forum share the users and login by using the forum database as the user database. We want our users to be able to login to the website using a login form. The login form then communicates with the forum and logs the user in to the forum and thus also the website. We have been studying the documentation and believe the key is to communicate with IPS Connect.

After countless bad attempts at this we have been able to somewhat connect and we get a status-report SUCCESS and some user info (user name, email, id). Where do we go from here though? How do we actually sign in from here?

 

Here's some code that we have now:

if(isset($_GET['login'])){
    $masterKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";
    $ipsconnect = "path/to/ipsconnect.php";
    $ourKey = md5( $masterKey . $_POST['name'] );
    
$check = file_get_contents( $ipsconnect . '?' . http_build_query( array( 'do' => 'login', 'key' => $ourKey, 'id' => $_POST['name'], 'password' => $_POST['password'], 'idType' => '1') ) );
}

echo '<p><form action="call-ips.php?login=1" method="post">
    <p><b>Username:</b> <input type="text" name="name" /></p>
    <p><b>Password:</b> <input type="password" name="password" /></p>
    <p><input type="submit" value="Login" /></p>
</form></p>';

 

We would greatly appreciate if someone bothered to explain this process to us as clearly as possible. The documentation we've found hasn't been enough to get us all the way to a result.

 

Thanks for your time!

 

Kind regards,

 

Kenneth

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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