allow login by username&password in request

This commit is contained in:
Isaac Connor 2018-10-02 16:59:05 -04:00
parent 5f89931774
commit efda26121b
1 changed files with 2 additions and 0 deletions

View File

@ -189,6 +189,8 @@ if ( ZM_OPT_USE_AUTH ) {
userLogin($authUser['Username'], $authUser['Password'], true);
}
}
} else if ( isset($_REQUEST['username']) and isset($_REQUEST['password']) ) {
userLogin($_REQUEST['username'], $_REQUEST['password'], false);
}
if ( !empty($user) ) {
// generate it once here, while session is open. Value will be cached in session and return when called later on