Commit 21e3e4b4 authored by Dries's avatar Dries

- Patch #136067 by ChrisKennedy: fixed required-attribute of password fields.

parent 41542ef0
......@@ -1200,11 +1200,13 @@ function expand_password_confirm($element) {
'#type' => 'password',
'#title' => t('Password'),
'#value' => empty($element['#value']) ? NULL : $element['#value']['pass1'],
'#required' => $element['#required'],
);
$element['pass2'] = array(
'#type' => 'password',
'#title' => t('Confirm password'),
'#value' => empty($element['#value']) ? NULL : $element['#value']['pass2'],
'#required' => $element['#required'],
);
$element['#element_validate'] = array('password_confirm_validate');
$element['#tree'] = 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