Skip to content

Spaces in Passwords Not Allowed #89

Description

@frankcrawford

The test in htdocs/user/login-process.php files if the user's password has a space in it. The test is:

$password = security_form_input("/^\S*$/", "password_namedmanager", 1, "Please enter a password.");

The message appears to be ensure that it isn't an empty string entered, but fails. I've changed it to:

$password = security_form_input("/^\S.*$/", "password_namedmanager", 1, "Please enter a password.");

Which is less stringent, in that it only expects a non-space as the first character, and then accepts the rest of the line, although I'm sure there are other ways to do his test.

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