Import hashed user passwords into Meteor app -
i have existing site has user passwords hashed using sha1 hashing algorithm. need port users (and passwords) new meteor site.
is possible?
i encountered similiar problem , migrated accounts , had users reset passwords. can use built standard accounts methods handle login+reset functions.
login method call:
meteor.loginwithpassword(email, password, function(err){ if (err){ if(err.reason === "user has no password set"){ session.set('loginerrormessage', 'you have been migrated... reset password...'); //your template push user reset password } }else{ //normal login } });
can if have custom login form, possibly lightly customize accounts-ui package if desired
this approach has worked pretty app far, users have follow password reset procedure , go
Comments
Post a Comment