Closed acomito closed 3 years ago
Which version of accounts-js are you using? I think you will need to apply the following client side (as meteor password are hashed client side first) https://www.accountsjs.com/docs/strategies/password-client#hashing-the-password-client-side
"@accounts/graphql-api": "^0.29.0",
"@accounts/mongo": "^0.29.0",
"@accounts/password": "^0.29.0",
"@accounts/server": "^0.29.0",
I'll try hashing it client side and report back
it worked! Thanks.
@acomito do you have a list of all the changes you had to do to make it work with meteor? Would be nice to have in order to setup a guide on the website :)
I will put something together
@pradel
It ended up being really simple... mostly convertUserIdToMongoObjectId and then hashing the password on the frontend.
https://gist.github.com/acomito/b6969d6121254eeffa54be431a3f2262
Maybe the only additional note is that if you insert/create users programmatically anywhere on the backend, you have to make sure you're creating them with the meteor-style _ids
If I notice any other requirements, I'll let you know
I'm trying to connect a new nodejs application that uses accountsjs to an old database that was previously powered by a meteor application.
When I try to login to an old account, I am getting "Incorrect password", even though I'm positive the password is correct (I verified on an old meteor app version that's still running).
Is this something related to
Right now I have this
I was under the impressions accountsjs and meteor both use SHA256 but I'm very knowledgeable on the subject... looking at accountjs source it seems my password check is failing here
@stolinski @lorensr did you guys ever get your old meteor accounts working?
Some related reading/issues