Commit 82073b2b authored by Imran Hussain's avatar Imran Hussain
Browse files

Make sure details are set in every instance

parent d8602d88
......@@ -69,10 +69,12 @@ if ( isset($_POST["username"]) && isset($_POST["password"]) && !$RATELIMITED ) {
//do stuff for sucs auth
$DB_CON->exec("UPDATE sessions SET sucs_username='${username}' WHERE id='${SESSIONID}'");
$SUCS_LOGIN = true;
$details["sucs_username"] = $username;
} elseif ($isAuthd == "uni"){
//do stuff for uni auth
$DB_CON->exec("UPDATE sessions SET iss_username='${username}' WHERE id='${SESSIONID}'");
$ISS_LOGIN = true;
$details["iss_username"] = $username;
}else{
//do stuff for not authd peeps
$details["failedlogincount"] = $details["failedlogincount"] + 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment