set session to null if login fails to prevent warning when error msg is shown

This commit is contained in:
Uwe Steinmann 2022-03-04 08:17:07 +01:00
parent fe43b944c9
commit e4fb5d5255

View File

@ -89,6 +89,7 @@ $controller->setParam('sesstheme', $sesstheme);
$controller->setParam('referuri', $referuri);
$controller->setParam('session', $session);
if(!$controller->run()) {
$session = null;
add_log_line("login failed", PEAR_LOG_ERR);
_printMessage(getMLText($controller->getErrorMsg()), getMLText($controller->getErrorMsg())."\n");
exit;