Update authentication.php

This commit is contained in:
FusionPBX 2019-08-12 23:16:57 -06:00 committed by GitHub
parent 3bb2cc3322
commit 2b44f9e3e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}
}