Commit 26049b7b authored by Nigel McNie's avatar Nigel McNie
Browse files

Remember the username when a user submits the login form.

parent e4d0b890
......@@ -1442,6 +1442,7 @@ function auth_generate_login_form() {
'type' => 'text',
'title' => get_string('username') . ':',
'description' => get_string('usernamedescription'),
'defaultvalue' => (isset($_POST['login_username'])) ? $_POST['login_username'] : '',
'rules' => array(
'required' => true
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment