Commit 9dd28a65 authored by Nigel McNie's avatar Nigel McNie
Browse files

Don't make the 'password' field both required and have no value set.

This leads to login disaster.
parent 638c1a05
......@@ -1011,10 +1011,7 @@ function auth_get_login_form() {
'type' => 'password',
'title' => get_string('password') . ':',
'description' => get_string('passworddescription'),
'value' => '',
'rules' => array(
'required' => true
)
'defaultvalue' => '',
),
'submit' => array(
'type' => 'submit',
......@@ -1447,10 +1444,7 @@ function auth_generate_login_form() {
'type' => 'password',
'title' => get_string('password') . ':',
'description' => get_string('passworddescription'),
'value' => '',
'rules' => array(
'required' => true
)
'defaultvalue' => '',
),
'submit' => array(
'type' => 'submit',
......
Markdown is supported
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