MDL-57357 auth: fix the remember username feature on login page
authorJake Dallimore <jake@moodle.com>
Fri, 23 Dec 2016 02:42:01 +0000 (10:42 +0800)
committerJake Dallimore <jake@moodle.com>
Fri, 23 Dec 2016 02:42:01 +0000 (10:42 +0800)
auth/classes/output/login.php

index e5e4e7d..5b924bb 100644 (file)
@@ -151,6 +151,7 @@ class login implements renderable, templatable {
         $data->rememberusername = $this->rememberusername;
         $data->passwordautocomplete = $this->passwordautocomplete;
         $data->signupurl = $this->signupurl->out(false);
+        $data->username = $this->username;
 
         return $data;
     }