tmeasday / meteor-router

MIT License
366 stars 76 forks source link

email verification not working #137

Open paidon opened 10 years ago

paidon commented 10 years ago

Hello,

I've tried to use out-of-the-box email verfication but had no success. If I don't do anything, the URL http://localhost:3000/#/verify-email/1234567890 has no effect. Then I tried to implement myself:

Meteor.Router.add({
    '/#/verify-email/:_token': function(token) { 
        Accounts.verifyEmail(token); 
        return 'verifyEmail';
    }
});

which didn't work either. With

Meteor.Router.add({
    '/customVerification/:_token': function(token) { 
        Accounts.verifyEmail(token); 
        return 'verifyEmail';
    }
})

and pointing to http://localhost:3000/customVerification/1234567890 it works.

Could anyone help?

elvismercado commented 10 years ago

Hello, i am having the same problem. Is there an update on this subject jet, other than using iron-router?

jiangtao commented 10 years ago

On Server: Accounts.urls.verifyEmail = function(token) { return Meteor.absoluteUrl('verifyEmail/' + token); };