Skip to content

Password validation always fail when there's a trailing space in the password field #619

@dannyhajj

Description

@dannyhajj

I tried on a fresh installation over the Zend Skeleton Application, and the problem is reproducible.

When the password field has a leading and/or trailing space, registration always fails. (This is also reproducible in the change password form)

It seems that the Identical validator on the passwordConfirm field is running before the StringFilter is run on the password field

Leading and/or trailing spaces in the passwordConfirm are trimed before running the validator, thus making registration always fail.

Examples:

  1. This does not work
    password: 123456
    confirmPassword: 123456
  2. This does not work
    password: 123456
    confirmPassword: 123456
  3. This works (even though the confirm password has a trailing space, and the password field doesn't)
    password: 123456
    confirmPassword: 123456

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions