Skip to content

Password validation rejects valid passwords #44

@kavinduUdhara

Description

@kavinduUdhara

I was trying to have a password like: ~20k'H9":prk and got the error message: Password should have at least one lowercase letter, one uppercase letter, one number and one special character and should be at least 8 characters long.

I think the issue is with some characters like ~ and :.

It looks like the problem is in the file: /src/util/index.js
in the function: getRegexPatternFromKey
that uses: regex: "(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*]).{8,}",

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