Commit 66e2a757 authored by Aaron Wells's avatar Aaron Wells Committed by Robert Lyon

Prevent FF from auto-filling the "old password" field (Bug 1499164)

behatnotneeded: No password store in behat FF

Change-Id: I5f2ac0196f323dadf4f3fe2c2d2e44c74d30ebae
parent ae40ec69
......@@ -30,6 +30,15 @@ if (method_exists($authobj, 'change_password')) {
'changepassworddesc' => array(
'value' => '<tr><td colspan="2"><h3>' . get_string('changepassworddesc', 'account') . '</h3></td></tr>'
),
// HACK: A decoy password field to prevent Firefox from trying to autofill the "oldpassword" field.
// (FF will fill in this one instead, because it comes first. Then we can just ignore it.
// TODO: move the password reset form to a separate screen
'password' => array(
'type' => 'password',
'title' => '',
'class' => 'hidden',
'value' => 'decoypassword',
),
'oldpassword' => array( 'type' => 'password',
'title' => get_string('oldpassword'),
'help' => true,
......
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