diff --git a/include/staff/login.tpl.php b/include/staff/login.tpl.php index b7fe6fe6ea12cf56e90567dbefcb625dbe8c605c..b8b136eb56d01282e8b15dbd4c0f11085e437eaa 100644 --- a/include/staff/login.tpl.php +++ b/include/staff/login.tpl.php @@ -1,4 +1,8 @@ -<?php defined('OSTSCPINC') or die('Invalid path'); ?> +<?php +defined('OSTSCPINC') or die('Invalid path'); + +$info = ($_POST && $errors)?Format::htmlchars($_POST):array(); +?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> @@ -24,7 +28,7 @@ <?php csrf_token(); ?> <input type="hidden" name="do" value="scplogin"> <fieldset> - <input type="text" name="username" id="name" value="" placeholder="username" autocorrect="off" autocapitalize="off"> + <input type="text" name="username" id="name" value="<?php echo $info['username']; ?>" placeholder="username" autocorrect="off" autocapitalize="off"> <input type="password" name="passwd" id="pass" placeholder="password" autocorrect="off" autocapitalize="off"> </fieldset> <input class="submit" type="submit" name="submit" value="Log In">