test for existence of username in session to prevent error outputs

pull/3669/merge
Isaac Connor 2023-02-20 10:20:59 -05:00
parent 80797e97d7
commit bf810ec8c4
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ function get_auth_relay() {
return 'auth='.generateAuthHash(ZM_AUTH_HASH_IPS);
} else if (ZM_AUTH_RELAY == 'plain') {
// password probably needs to be escaped
return 'username='.$_SESSION['username'].'&password='.urlencode(isset($_SESSION['password']) ? $_SESSION['password'] : '');
return 'username='.(isset($_SESSION['username'])?$_SESSION['username']:'').'&password='.urlencode(isset($_SESSION['password']) ? $_SESSION['password'] : '');
} else if (ZM_AUTH_RELAY == 'none') {
return 'username='.$_SESSION['username'];
} else {