@@ 397-405 (lines=9) @@ | ||
394 | $value = $this->passwordField->Value(); |
|
395 | ||
396 | // both password-fields should be the same |
|
397 | if($value != $this->confirmPasswordfield->Value()) { |
|
398 | $validator->validationError( |
|
399 | $name, |
|
400 | _t('Form.VALIDATIONPASSWORDSDONTMATCH',"Passwords don't match"), |
|
401 | "validation" |
|
402 | ); |
|
403 | ||
404 | return false; |
|
405 | } |
|
406 | ||
407 | if(!$this->canBeEmpty) { |
|
408 | // both password-fields shouldn't be empty |
|
@@ 409-417 (lines=9) @@ | ||
406 | ||
407 | if(!$this->canBeEmpty) { |
|
408 | // both password-fields shouldn't be empty |
|
409 | if(!$value || !$this->confirmPasswordfield->Value()) { |
|
410 | $validator->validationError( |
|
411 | $name, |
|
412 | _t('Form.VALIDATIONPASSWORDSNOTEMPTY', "Passwords can't be empty"), |
|
413 | "validation" |
|
414 | ); |
|
415 | ||
416 | return false; |
|
417 | } |
|
418 | } |
|
419 | ||
420 | // lengths |