allow login by username&password in request
This commit is contained in:
parent
5f89931774
commit
efda26121b
|
@ -189,6 +189,8 @@ if ( ZM_OPT_USE_AUTH ) {
|
||||||
userLogin($authUser['Username'], $authUser['Password'], true);
|
userLogin($authUser['Username'], $authUser['Password'], true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if ( isset($_REQUEST['username']) and isset($_REQUEST['password']) ) {
|
||||||
|
userLogin($_REQUEST['username'], $_REQUEST['password'], false);
|
||||||
}
|
}
|
||||||
if ( !empty($user) ) {
|
if ( !empty($user) ) {
|
||||||
// generate it once here, while session is open. Value will be cached in session and return when called later on
|
// generate it once here, while session is open. Value will be cached in session and return when called later on
|
||||||
|
|
Loading…
Reference in New Issue