Meteor.logout属性是否删除电子邮件字段?

Meteor.logout属性是否删除电子邮件字段?,meteor,Meteor,我制作了一个小应用程序,它使用: meteor add accounts-base meteor add accounts-password 我可以使用用户名、电子邮件和密码字段注册新用户,但当我注销时,meteor会删除电子邮件字段。为什么 我的注册新用户代码: 我要注销的代码: Template.logout.events({ "submit #logout-form":function(event,template){ Meteor.logout(function(){

我制作了一个小应用程序,它使用:

meteor add accounts-base
meteor add accounts-password
我可以使用用户名、电子邮件和密码字段注册新用户,但当我注销时,meteor会删除电子邮件字段。为什么

我的注册新用户代码:

我要注销的代码:

Template.logout.events({
 "submit #logout-form":function(event,template){
   Meteor.logout(function(){
     event.preventDefault();
     Modal.hide(template);
   });
 }
});

您的意思是MongoDB中的电子邮件字段在注销后消失了?您是否能够使用该特定用户再次登录?您是在查看客户端还是服务器?不可能从服务器上的用户删除电子邮件密钥。注销后,
Meteor.user()
对象将变为
未定义的
,因此根据定义,
Meteor.user().email
将出错。其全部在客户端,email字段消失
Template.logout.events({
 "submit #logout-form":function(event,template){
   Meteor.logout(function(){
     event.preventDefault();
     Modal.hide(template);
   });
 }
});