Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.382 kb
<?php
require_once('init.php');
if (!isset($_REQUEST['token'])) {
print "No token supplied!\n";
exit;
}
$auth = (array) $oCall->signedCall('auth.getSession', array('token' => $_REQUEST['token']));
$oSession->createUser($auth['name'], $auth['key']);
setcookie('user', $oSession->generate($auth['name']));
header('Location: index.php');
Jump to Line
Something went wrong with that request. Please try again.