check for $_POST['logininfo'/'action']

This commit is contained in:
Uwe Steinmann 2020-06-16 15:22:20 +02:00
parent 2a35765fde
commit c2b7e4d6c2

View File

@ -86,12 +86,13 @@ else if (isset($_GET["referuri"]) && strlen($_GET["referuri"])>0) {
add_log_line(); add_log_line();
$controller->setParam('login', $login); $controller->setParam('login', $login);
$controller->setParam('logininfo', $_POST['logininfo'] ? $_POST['logininfo'] : ''); $controller->setParam('logininfo', !empty($_POST['logininfo']) ? $_POST['logininfo'] : '');
$controller->setParam('pwd', $pwd); $controller->setParam('pwd', $pwd);
$controller->setParam('lang', $lang); $controller->setParam('lang', $lang);
$controller->setParam('sesstheme', $sesstheme); $controller->setParam('sesstheme', $sesstheme);
$controller->setParam('session', $session); $controller->setParam('session', $session);
switch($_POST['action']) { $action = !empty($_POST['action']) ? $_POST['action'] : '';
switch($action) {
case 'preparelogin': case 'preparelogin':
$controller->preparelogin(); $controller->preparelogin();
exit(); exit();