-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API to set autoLoginEnabled #37
Comments
In iron-router-auth I have a hook As for reset password, does it really matter that you can reset your password even if you're logged in? |
Maybe it is not you who is logged in at that browser. It is strange to popup window for reset while some other user is logged in. Also, it is not just reset password. It is also invite dialog which works the same. I think this is bad. Currently, you have to logout, but that means that Meteor first logged you in before you log out. It would be better if you could simply prevent logging in in the first place. |
The thing is that when you call Accounts.resetPassword, no matter who is the currently logged in user, the user associated with the token you pass in gets logged in straight on (possibly logging out the previous one). How you manage it on the UI is separate stuff. So, would you like your Otherwise you can set a very brief expiration time for resume tokens and ensure no user is logged back in on new connections. ...you can set |
If you use the core APIs (eg Accounts.onEmailVerificationLink, auto-login is deferred until you call the |
No. Because |
Hmm. Interesting. /cc @sashko we might want to expose |
Yes! Please! :-) |
I suppose one hack would be to just run |
I am using iron-router to intercept reset password and enroll account URLs. The issue is that there is no easy way to assure that user if not logged in when they access reset password or enroll account URLs. I am currently forcing users to logout in route controller, but that is ugly.
Related: meteor/meteor#2803
The text was updated successfully, but these errors were encountered: