Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce Password Policies #3

Open
OmalPerera opened this issue Mar 1, 2018 · 0 comments
Open

Enforce Password Policies #3

OmalPerera opened this issue Mar 1, 2018 · 0 comments

Comments

@OmalPerera
Copy link
Member

Passwords sent to the backend must meet the following complexity requirements.

  • Use a password length of minimum 6 and maximum of 8 characters.

  • Password must contain both lowercase and uppercase characters.

  • Password must contain at least one of the following non alphanumeric characters:
    ~!@#$%^&*_-+=`|(){}[].?

  • Password must be hashed before save

If the password is not set, you should randomly generate a password, that meet the above complexity requirements.

Response schema

400 Bad Request: If the password complexity requirement is not met.

{
    "status": 400,
    "message": "Password complexity requirement not met",
    "developerMessage": "User creation failed because password complexity requirement not met"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant