diff --git a/core/authentication/resources/classes/authentication.php b/core/authentication/resources/classes/authentication.php index c235d49f8c..6f4d31044b 100644 --- a/core/authentication/resources/classes/authentication.php +++ b/core/authentication/resources/classes/authentication.php @@ -90,8 +90,12 @@ class authentication { if (count($_SESSION['authentication']['methods']) > 1) { $result['results'][] = $array; } + if ($result["authorized"] == "true") { + //add the username to the session $_SESSION['username'] = $result["username"]; + + //end the loop break; } }