diff --git a/login.php b/login.php index 43ec38ab..c37a1b77 100644 --- a/login.php +++ b/login.php @@ -18,7 +18,7 @@ * * Template Variables: * - * tMessage + * none * * Form POST \ GET Variables: * @@ -29,7 +29,6 @@ require_once('common.php'); -$smarty->assign('tMessage', ''); # force user to delete setup.php (allows creation of superadmins!) if($CONF['configured'] !== true) { print "Installation not yet configured; please edit config.inc.php"; @@ -66,13 +65,13 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") if ($result['rows'] != 1) { $error = 1; - $tMessage = '' . $PALANG['pLogin_failed'] . ''; + flash_error($PALANG['pLogin_failed']); } } else { $error = 1; - $tMessage = '' . $PALANG['pLogin_failed'] . ''; + flash_error($PALANG['pLogin_failed']); } if ($error != 1) @@ -95,8 +94,6 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") exit(0); } - $smarty->assign ('tMessage', $tMessage, false); - $smarty->assign ('smarty_template', 'login'); $smarty->display ('index.tpl'); }