Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

[bugfix] Fixes bug with db seed user passwords #931

Closed
wants to merge 2 commits into from

Conversation

mleanos
Copy link
Member

@mleanos mleanos commented Sep 24, 2015

@lirantal This PR is an alternative to #921 You may prefer this one as it is much simpler and has very little changes to the db seed configuration. I know you want this fix merged ASAP. Whatever your preference, is fine by me. This PR & #921 work to fix the bug.

Added a static schema method to the User schema to generate a random
passphrase, that passes the owasp strength test.

Updated the db seed configuration to use a randomly generated passphrase
from the new User schema method, as the passwords for the seeded users.

Added the generate-password package to the project.

Added a static schema method to the User schema to generate a random
passphrase, that passes the owasp strength test.

Updated the db seed configuration to use a randomly generated passphrase
from the new User schema method, as the passwords for the seeded users.

Added the generate-password package to the project.
Added a User model test for the generateRandomPassphrase schema method.
@lirantal
Copy link
Member

No worries @mleanos, I'm ok with the promise-based approach.
Thanks, I appreciate the will to help out :)

@lirantal lirantal added this to the 0.4.2 milestone Sep 24, 2015
@codydaig
Copy link
Member

LGTM

@lirantal As I said in the other PR, which ever PR is going to make your refactor easier, go ahead and merge that one.

@mleanos
Copy link
Member Author

mleanos commented Sep 25, 2015

Closing since #921 was merged in lieu of this one.

@mleanos mleanos closed this Sep 25, 2015
@mleanos mleanos deleted the dbseed-user-passwords-simple branch September 25, 2015 06:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants