git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce5695
)
login: preserve input value after failure
author
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 6 Oct 2017 11:48:53 +0000
(13:48 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 6 Oct 2017 11:48:53 +0000
(13:48 +0200)
login.inc.php
patch
|
blob
|
history
diff --git
a/login.inc.php
b/login.inc.php
index 69607dfb897a42edb92814d8930365cab01514c7..2809478cc212300ae95e7edf5c713e2eedab0c9b 100644
(file)
--- a/
login.inc.php
+++ b/
login.inc.php
@@
-6,7
+6,9
@@
if (isset($message)) {
}
?>
<form action="" method="post">
- <input id="login" name="login" placeholder="Huisnummer" />
+ <input id="login" name="login" placeholder="Huisnummer" value="<?php
+ if (isset($_REQUEST['login'])) print htmlspecialchars($_REQUEST['login']);
+ ?>" />
<input id="pass" name="pass" type="password" value="" placeholder="Wachtwoord" />
<input type="submit" value="Log in" />
</form>