askSalt(); die(); case 'login': // client sent is login info $ServerDomain = new ServerDomain($RingDb, $clientApplication); if ($User->checkValidity($password, $ServerDomain)) { if ($AutoCreateRingInfo) $User->createRingInfo($ServerDomain); $LSaddr = explode(":", $ServerDomain->domainInfo['login_address']); // ask for a session cookie to the login service $Login = new LoginCb(); $Login->init($RingDb, $ServerDomain); $res = ""; $Login->connect($LSaddr[0], $LSaddr[1], $res); $Login->login($User->uid, $_SERVER['REMOTE_ADDR'], $ServerDomain->id); if (!$Login->waitCallback()) die(errorMsgBlock(3003)); } die(); }