#59526, password_confirm fields don't flag error when required and empty, patch by sammys

4.7.x
Gerhard Killesreiter 2006-04-22 08:24:55 +00:00
parent d469df81c7
commit 8d4147637a
1 changed files with 1 additions and 1 deletions

View File

@ -729,7 +729,7 @@ function expand_password_confirm($element) {
* Validate password_confirm element.
*/
function password_confirm_validate($form) {
if (isset($form['pass1']['#value'])) {
if (!empty($form['pass1']['#value'])) {
$pass1 = trim($form['pass1']['#value']);
$pass2 = trim($form['pass2']['#value']);
form_set_value($form['pass1'], NULL);