Accounts.setPassword(userId, password);
Before Meteor v1.0.2, the user was not logout when calling this function.
Since v1.0.2, I quote from https://github.com/meteor/meteor/blob/devel/History.md, "Expire a user's password reset and login tokens in all circumstances when their password is changed".
I don't know the reason of this change,but the fact is that function above logout the user.
Is there a way, with v1.0.2, to change a user password without logout the user?
If not, how do I downgrade the package account-base so the behaviour is like before?
Thanks.
Accounts.setPassword(userId, password, options)
This method now supports options
parameter that includes options.logout
option which could be used to prevent the current user's logout.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With