Skip to content

Custom message and validator for Password not equal to username #342

@sanjay177

Description

@sanjay177

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [X ] feature request

OS and Version?

macOS(Monterary)

Versions

Angular Version - 11.2

Repro steps

In my application i would like to make sure that user does not enter same password as the username/email address .
Is there a way i can implement my custom method which will return either true or false based on that password stregth info message will turn green or red.
I understand that there is customValidator present in library but can we also use that to see if user is entering same password as username

The log given by the failure

Desired functionality

In my application i would like to make sure that user does not enter same password as the username/email address .
Is there a way i can implement my custom method which will return either true or false based on that password stregth info message will turn green or red.
I understand that there is customValidator present in library but can we also use that to see if user is entering same password as username

Mention any other details that might be useful

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions