meteor accounts-ui-bootstrap-3电子邮件注册表单不显示电子邮件字段

meteor accounts-ui-bootstrap-3电子邮件注册表单不显示电子邮件字段,meteor,meteor-accounts,Meteor,Meteor Accounts,新的流星 配置accounts-ui-bootstrap-3时出现问题。{{>loginButtons}}显示OK,但单击时没有电子邮件地址字段 在server>accounts.js中,我有 // setup accounts on meteor startup Meteor.startup(function(){ // configure accounts Accounts.config({ sendVerificationEmail: true,

新的流星

配置accounts-ui-bootstrap-3时出现问题。{{>loginButtons}}显示OK,但单击时没有电子邮件地址字段

在server>accounts.js中,我有

// setup accounts on meteor startup
Meteor.startup(function(){
    // configure accounts
    Accounts.config({
        sendVerificationEmail: true,
        forbidClientAccountCreation: false
    });
});
我已安装以下软件包:

meteor-platform
autopublish
insecure
jquery
iron:router
dburles:google-maps
accounts-password
twbs:bootstrap
ian:accounts-ui-bootstrap-3
accounts-facebook
email
accounts-google
accounts-twitter
几个问题:

正如uZar指出的,需要安装客户群

此外,需要在客户端和服务器端配置帐户

在服务器上:

Meteor.startup(function(){
// setup to send email
smtp = {
    username: 'xxxxx',       // eg: server@gentlenode.com
    password: 'xxxxx',     // eg: 3eeP1gtizk5eziohfervU
    server:   'xxxxx',       // eg: mail.gandi.net
    port: 587
};
process.env.MAIL_URL = 'smtp://' + encodeURIComponent(smtp.username) + ':' + encodeURIComponent(smtp.password) + '@' + encodeURIComponent(smtp.server) + ':' + smtp.port + '/';

// configure accounts
Accounts.config({
    sendVerificationEmail: true,
    forbidClientAccountCreation: false
});
...
});
在客户机上:

// configure accounts
Accounts.ui.config({
    passwordSignupFields: 'USERNAME_AND_EMAIL'
});
Accounts.ui.config({
    requestPermissions: {},
    extraSignupFields: [{
            fieldName: 'terms',
            fieldLabel: 'I accept the terms and conditions',
            inputType: 'checkbox',
            visible: true,
            validate: function(value, errorFunction){
                if (value != 'true') {
                    errorFunction("You must accept the terms and conditions.");
                    return false;
                } else {
                    return true;
                }
            },
            saveToProfile: false
        }]
});
如果要向注册添加字段,请在客户端上执行以下操作:

// configure accounts
Accounts.ui.config({
    passwordSignupFields: 'USERNAME_AND_EMAIL'
});
Accounts.ui.config({
    requestPermissions: {},
    extraSignupFields: [{
            fieldName: 'terms',
            fieldLabel: 'I accept the terms and conditions',
            inputType: 'checkbox',
            visible: true,
            validate: function(value, errorFunction){
                if (value != 'true') {
                    errorFunction("You must accept the terms and conditions.");
                    return false;
                } else {
                    return true;
                }
            },
            saveToProfile: false
        }]
});
尝试将帐户基本包添加到你的应用程序中