retrieving password reset token

560 views
Skip to first unread message

Ben McMahen

unread,
Nov 7, 2012, 8:55:14 PM11/7/12
to meteo...@googlegroups.com
I'm attempting to implement password resetting into my application using Meteor's built-in methods. I understand that the token from the link like this


needs to be retrieved, and passed into 

Accounts.resetPassword(); 

But how do I get this token? I'm using Backbone's Router for routing purposes, which would ordinarily allow me to get the token by doing something like this: 

routes : {
    'reset-password/:id' : 'newPassword',
  },

But it seems like Backbone expects the format to be 

/#reset-password/token

instead. 

Anyway -- can anyone help me with (probably the obvious) solution to retrieving this token?

Cheers.

Avital Oliver

unread,
Nov 7, 2012, 10:26:09 PM11/7/12
to meteo...@googlegroups.com
Hi Ben,

Take a look at https://github.com/meteor/meteor/blob/master/packages/accounts-urls/url_client.js, which parses these URLs and https://github.com/meteor/meteor/blob/master/packages/accounts-ui-unstyled/login_buttons_dialogs.js, which uses the results of that parse to display the appropriate dialogs.

Hope this helps,
Avital.

--
You received this message because you are subscribed to the Google Groups "meteor-talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/meteor-talk/-/O57s9MBl-k8J.
To post to this group, send email to meteo...@googlegroups.com.
To unsubscribe from this group, send email to meteor-talk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/meteor-talk?hl=en.

Ben McMahen

unread,
Nov 8, 2012, 12:30:54 AM11/8/12
to meteo...@googlegroups.com
Perfect. Thanks.
Reply all
Reply to author
Forward
0 new messages