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

Chore: Improve password strength #138

Merged
merged 2 commits into from
May 14, 2019
Merged

Conversation

vic3king
Copy link
Contributor

@vic3king vic3king commented May 13, 2019

Description

This PR improves the password validation for our backend to include special characters

Type of change

  • Update
  • [ ]

How Has This Been Tested?

  • Unit testing

Checklist:

  • use regular expression to strenght the passwords provided by the user
  • write tests

PT-ID

N/A

Screenshots

N/A

Questions:

N/A

- use regular expression to strenght the passwords provided by the user
- write tests
@Akinmyde Akinmyde temporarily deployed to hermes-ah-backend-stagi-pr-138 May 13, 2019 19:11 Inactive
.alphanum()
.required(),
.regex(/^(?=.*[0-9])(?=.*[!@#$%^&=*])[a-zA-Z0-9!@#$%^&=*]{6,16}$/)
.error(() => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the => arrow-body-style

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix this hound issue

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@sojida sojida changed the title Improve password strength Chore: Improve password strength May 13, 2019
Copy link
Contributor

@AnayoOleru AnayoOleru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@AnayoOleru AnayoOleru merged commit 84443a1 into develop May 14, 2019
@AnayoOleru AnayoOleru deleted the chore/improve-password-strenght branch May 14, 2019 09:51
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

Successfully merging this pull request may close these issues.

None yet

5 participants