Anybody port user's accounts over to meteor using meteorImport? I have a json file filled with user data. It's a pretty straight forward data structure that imports into my Meteor.users collection just fine but while running autopublish and then logging the user data it appears to just disappear.
If I run db.users.find() in the mongodb terminal the data appears to be all there.
I've read that meteor makes a few fields available by default(username, emails, profile). So I've added these to my json file and the only thing I can get to log on the client side using Meteor.users.find().fetch() is the _Id.

If I attempt to login using an email and password(it's been encoded) it says that the user is not found.
Template.manage.events({
"click #submitLogin" : function(e, t){
e.preventDefault();
//http://blog.benmcmahen.com/post/41741539120/building-a-customized-accounts-ui-for-meteor
var email = t.find("#username").value;
var password = t.find("#password").value;
//By default the server publishes username, emails,
//and profile (writable by user).
Meteor.loginWithPassword(email, password, function(err){
if(err){
alert(err);
}else{
alert("YOU ARE NOW LOGGED IN");
Router.go("postLogin/teamMembersTable");
}
});
return false;
},
"click #forgotPW": function(err){
alert("CLICK ENCOUNTERED ON FORGOT PW" + err);
}
What do you think I'm doing wrong while logging a user in that causes me to receive a user not found error? And most importantly... How do I fix this?
serviceskey in your user collection which contains things like the encrypted (bcrypt) password. Create a Meteor user the normal way and compare its data with one of your imported users usingmeteor mongoon the server. - Michel Floyd