Commit 9c2c72b6 authored by Kristina Hoeppner's avatar Kristina Hoeppner

Bug #1191453: Make password field of type password

The password should not be displayed in
plaintext. I changed the type of the input
field to "password" to account for that.

Change-Id: I5d64470291e1c81b31bc0aaeb8cd65d809412ae7
Signed-off-by: Kristina Hoeppner's avatarKristina D.C. Hoeppner <kristina@catalyst.net.nz>
parent 72f5f467
......@@ -94,7 +94,7 @@ $elements = array(
),
),
'password' => array(
'type' => 'text',
'type' => 'password',
'title' => get_string('password'),
'rules' => array('required' => true),
),
......
......@@ -77,7 +77,7 @@ if (method_exists($authobj, 'change_username')) {
if (method_exists($authobj, 'change_password')) {
// Only show the password options if the plugin allows for the functionality
$elements['password'] = array(
'type' => 'text',
'type' => 'password',
'title' => get_string('resetpassword','admin'),
'description' => get_string('resetpassworddescription','admin'),
);
......
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