Skip to content
Snippets Groups Projects
Commit 3c0fd386 authored by Peter Rotich's avatar Peter Rotich
Browse files

Retain entered username on error

parent 51da8aea
No related branches found
No related tags found
No related merge requests found
<?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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment