Skip to content
This repository was archived by the owner on Jun 24, 2023. It is now read-only.
This repository was archived by the owner on Jun 24, 2023. It is now read-only.

errorPopover not updating message #119

@PavtheDog

Description

@PavtheDog

Error message is not updating when it is set the first time.
The message Enter Password shows.
Then I enter text which should trigger the Not strong enough. text but Enter Password still shows instead

function validatePasswordLabel(el) {
var password = el.val();
var retValue = {};
var strongRegex = new RegExp("^(?=.[a-z])(?=.[A-Z])(?=.[0-9])(?=.[!@#$%^&*])(?=.{8,})");

if (password == "") {
    retValue.status = false;
    retValue.msg = "Enter a password";
} else {
    if (strongRegex.test(password)) {
        retValue.status = true;
        check_password = password
    } else {            
        retValue.status = false;
        retValue.msg = "Not strong enough.";
        check_password = password
    }
   
}

return retValue;

};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions