Break instead of dying, and die anyway.

Fix indent
This commit is contained in:
Stanislas Dolcini 2018-10-02 19:40:42 +02:00
parent 8cd093edb5
commit dbcd137aee

View file

@ -35,7 +35,7 @@ switch ($_GET['cmd']) {
case 'ask': case 'ask':
// client ask for a login salt // client ask for a login salt
askSalt($_GET['login'], $submittedLang); askSalt($_GET['login'], $submittedLang);
die(); break;
case 'login': case 'login':
$domainId = -1; $domainId = -1;
// client sent is login info // client sent is login info
@ -79,7 +79,7 @@ switch ($_GET['cmd']) {
if (!$login->waitCallback()) { if (!$login->waitCallback()) {
die(errorMsgBlock(3003)); die(errorMsgBlock(3003));
} }
break;
//the rest of the process is done in the callback function //the rest of the process is done in the callback function
} }
} }
@ -243,8 +243,7 @@ function checkUserValidity($login, $password, $clientApplication, $cp, &$id, &$r
} }
} else { } else {
// // check if the user not already online // // check if the user not already online
//
// if ($row["State"] != "Offline") // if ($row["State"] != "Offline")
// { // {
// $reason = "$login is already online and "; // $reason = "$login is already online and ";