-
Notifications
You must be signed in to change notification settings - Fork 294
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
v1.x => v4 upgrade strategy, how? #118
Comments
Upgrade to 4.x and then set your digest Algorithm to sha1. This will get the code working, after that you should plan for a way for your users to upgrade their passwords. Take a look at @toddbluhm 's pull request and you can see that numerous of us are having this issue of needing to upgrade users passwords. |
Maybe this is useful, I overriden the plugin to check if the user is using |
I'm confrunted with the same issue. I'm/was new to mongoose and followed a tutorial that used versions:
Yikes! Now I have users using my app and I want to make sure the security is up to date. In case others are looking for the pr that @BrandonCopley was talking about here's a link. @mjlescano Thanks for sharing your code. I'm trying to figure out how to add it to my project. Is there an easy way to include your code in my project? |
@mjlescano required the mongoose.js file you linked to and replaced the following:
with
Then I installed the latest version of passport:
But when I try to login, I just get an error:
I feel like I'm close, what did I miss? |
Do more debugging and it doesn't seem to have over written the @whyhankee, did you ever find a solution to this? |
@wootwoot1234 that's weird, I would need a little more context to give a hand; maybe you are calling the plugin somewhere else, or calling another instance of Maybe this helps, these are the files we're using to setup the auth: |
@mjlescano, thanks for the help. This is what I have: https://gist.github.com/wootwoot1234/d6ce91b7a83f5dcbcbe742bd449a94bf You can see I've reverted back to what I had for now but left the changes I made to |
@wootwoot1234 the |
@mjlescano, That worked great! Thanks so much!! |
Hi, i'm having a project that's depending on passport-local-mongoose v1.3.x.
I want to upgrade to 4.x
The README clearly states:
In these cases plan some migration strategy and/or use the sha1 option for the digest algorithm
I'm a bit lost on how such a strategy should be implemented, can anyone point me in the right direction?
Thanks.
The text was updated successfully, but these errors were encountered: