meteor-accounts-ui-bootstrap-3
meteor-accounts-ui-bootstrap-3 copied to clipboard
"Forgot password" email link doesn't show "Reset Password" modal
When I use 'forgot password' the email link eg "http://mydomain.com/#/reset-password/fpfVy5s6Q74I7U8e_H-n5EM2Y3I5DdOzFi9ViliDjFU" just redirects to "http://mydomain.com/#/" without showing the reset password modal.
Do you still have this issue? It works fine for me.
@ianmartorell: I have just discovered your package and it looks great. Maybe there is something I don't understand, but here the OP is asking what should happen when entering the "reset" URL in his browser address bar. Am I wrong to say that, because your package doesn't integrate with a router, nothing will happen? In other words, it is up to the programmer to implement the actual "reset password" logic, isn't it?
Looking at the code, I discovered there is indeed some logic to display a reset password modal. However I confirm the present issue: most of the time, the modal does not show up.
When using the reset url:
Accounts._resetPasswordTokencontains the proper token.Accounts._loginButtonsSession.get('resetPasswordToken')contains the proper token.<body>contains the proper modal (withdisplay:none).
Additionally, when I play with my app a lot and change my code (triggering hot code push), the modal sometimes shows up, but I didn't find a way to reproduce this every time.
If outer is the template that uses {{> loginButtons}}, adding the following code fixes the problem:
Template.outer.rendered = function() {
$('#login-buttons-reset-password-modal').modal();
};
I also have this issue, on 1.2.84 and as well on 1.2.89. @steph643 's solution (even using onRendered) has no effect. I do seem to have a display:none dialog in my dom with id = login-buttons-reset-password-modal-success. I don't have a dialog in my dom with id = login-buttons-reset-password-modal
I was having this issue also. But in fact was a conflict with modals between semantic-ui and bootstrap. After removing semantic-ui dependency the recovering functionality started to work as expected.
Still have this isssue. I decided to dig deeper.
- I do have a dialog in my dom with id = login-buttons-reset-password-modal-success . it is hidden. I also have a div with id = login-buttons-reset-password-modal, but there is nothing within the div
- When I use the email link, in url_client, part of accounts-base, self._accountsCallbacks[urlPart] seem to be undefined, so the handler doesnt get called, which I presume would show the dialog we all would like.
- i am using bootstrap dialogs elsewhere in my app and they work.
@vjrj , can you please tell me the order of your packages in your .meteor/packages file?
+1 - I actually cannot find the login-buttons-reset-password-modal element anywhere