Meteor account email verify fails two ways

情到浓时终转凉″ 提交于 2019-12-05 06:50:22

I confirm, this is now perfectly working. Here is what I do once I'm redirect to the root of the application.

Read More: Verify an Email with Meteor Accounts.

// (client-side)
Template.Homepage.created = function() {
  if (Accounts._verifyEmailToken) {
    Accounts.verifyEmail(Accounts._verifyEmailToken, function(err) {
      if (err != null) {
        if (err.message = 'Verify email link expired [403]') {
          console.log('Sorry this verification link has expired.')
        }
      } else {
        console.log('Thank you! Your email address has been confirmed.')
      }
    });
  }
};

Apparently there is a known issue with iron router and URLs that have hashbangs in the path, as the one it is generated with the email :

https://github.com/EventedMind/iron-router/issues/3

I suggest you try implement the same solution as the user samhatoum says (careful that I think since he put the code on the extends method in RootController has changed for extend.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!