Skip to content
Snippets Groups Projects
Commit 59337b32 authored by Jared Hancock's avatar Jared Hancock
Browse files

forms: Fix fail getting value of password field

parent 56cc7098
No related branches found
No related tags found
No related merge requests found
......@@ -1794,7 +1794,7 @@ class PasswordWidget extends TextboxWidget {
parent::parseValue();
// Show empty box unless failed POST
if ($_SERVER['REQUEST_METHOD'] != 'POST'
|| $this->field->getForm()->isValid())
|| !$this->field->getForm()->isValid())
$this->value = '';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment