I made a small application that uses:
meteor add accounts-base
meteor add accounts-password
i can register a new user with username, email and pass fields but when I logout, meteor delete the email field. why ? . its all on client.
my code to register …
var user=template.find('#regnombre').value;
var email=template.find('#regemail').value;
var pass1=template.find('#regpass1').value;
var pass2=template.find('#regpass2').value;
var userObject = {
username: user,
email: email,
password: pass1
};
Accounts.createUser(userObject, function (err) {
my code to logout …
"submit #logout-form":function(event,template){
Meteor.logout(function(){
event.preventDefault();
Modal.hide(template);
});
}
Am running on client.