|
@@ -90,8 +90,12 @@ class authentication {
|
|
if (count($_SESSION['authentication']['methods']) > 1) {
|
|
if (count($_SESSION['authentication']['methods']) > 1) {
|
|
$result['results'][] = $array;
|
|
$result['results'][] = $array;
|
|
}
|
|
}
|
|
|
|
+
|
|
if ($result["authorized"] == "true") {
|
|
if ($result["authorized"] == "true") {
|
|
|
|
+ //add the username to the session
|
|
$_SESSION['username'] = $result["username"];
|
|
$_SESSION['username'] = $result["username"];
|
|
|
|
+
|
|
|
|
+ //end the loop
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|