【问题标题】:Meteor: How to override verify email popup dialog which appears after clicking email verification linkMeteor:如何覆盖单击电子邮件验证链接后出现的验证电子邮件弹出对话框
【发布时间】:2016-02-19 19:23:57
【问题描述】:

我想在用户单击发送到该电子邮件的验证电子邮件链接时出现的弹出对话框中添加一些字段。实际上我想扩展注册过程。因此,当用户单击验证链接时,我想在弹出窗口中显示更多字段,例如邮政编码和出生日期,然后单击保存这些字段应保存到用户模式。 任何帮助将不胜感激。我是流星新手。

我正在使用ian:accounts-ui-bootstrap-3 进行注册。

【问题讨论】:

    标签: meteor meteor-accounts


    【解决方案1】:

    如果需要,请提供更多详细信息!

    使用以下包,您可以替换模板:

    https://github.com/aldeed/meteor-template-extension

    所以你创建自己的模板,然后替换默认的:

    Template.emailVerifiedDialog.replaces("_justVerifiedEmailDialog")
    

    您的对话框将显示在每个页面上,您必须添加行为以使其在必要时可见

    Template.emailVerifiedDialog.helpers({
      visible: function () {
        return loginButtonsSession.get('justVerifiedEmail');
     }
    

    并管理点击按钮事件:

    Template.emailVerifiedDialog.events({
     'click #just-verified-dismiss-button': function () {
       loginButtonsSession.set('justVerifiedEmail', false);
     }
    });
    

    【讨论】:

      【解决方案2】:

      好的,我自己找到了解决方案。

      这里是如果其他人也在寻找这个。 我们可以通过覆盖 /meteor-accounts-ui-bootstrap-3 文件夹中的 login_buttons_dialogs.html 文件来覆盖电子邮件弹出对话框。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-02-16
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-11-06
        相关资源
        最近更新 更多