login: templating support for warning message
[minimedit.git] / login.inc.php
index 2809478cc212300ae95e7edf5c713e2eedab0c9b..9c2a604448b9c52e11a147ad175f9ca7af7cce51 100644 (file)
@@ -1,13 +1,8 @@
 <h2>Inloggen</h2>
 
-<?php
-if (isset($message)) {
-       printf('<p class="warn">%s</p>'."\n\n", $message);
-}
-?>
 <form action="" method="post">
-       <input id="login" name="login" placeholder="Huisnummer" value="<?php
-               if (isset($_REQUEST['login'])) print htmlspecialchars($_REQUEST['login']);
+       <input id="login" name="login" placeholder="Gebruikersnaam" value="<?php
+               if (isset($_POST['login'])) print htmlspecialchars($_REQUEST['login']);
        ?>" />
        <input id="pass" name="pass" type="password" value="" placeholder="Wachtwoord" />
        <input type="submit" value="Log in" />