mondora / asteroid

An alternative client for a Meteor backend
MIT License
734 stars 101 forks source link

User should logged out from app in other device when he reset password from any of his device #112

Open nirmal25990 opened 7 years ago

nirmal25990 commented 7 years ago

What I want to do is logged out from other device of same user(account) when he/she change password from any of his device. Astroid doesn't provide change/reset password service so I have made reset password service in app which called Accounts.sendResetPasswordEmail() method in server side which will sent a reset password email to email id and user can reset password by click on link. By clicking on link user can add new password data and submit which will internally called Accounts.resetPassword(). On success result of that method it called Meteor.logoutOtherClients().

Still app in other device working fine. When user logged out from app. He need to add new reseted password to login again. But I want to do is user should be logged out form other device when he change password from any device.

Let me know if there is other better way to do this.