Is there any way to log out a user (or all users) from the server? Basically I'm trying to log out all users every time the meteor server starts up or restarts.
Navigate to Computer Configurations > Policies > Windows Settings > Security Settings > Local Policies > Security Options. From the right pane of the console, select the Network security: Force logoff when logon hours expire policy. In the Security Policy Setting tab, select the Define this policy setting checkbox.
Right-click the target connection and choose "Disconnect" from the context menu. Click "OK" to kill the session.
If you disconnect from a remote desktop without logging off, applications in the remote desktop might remain open. You can also disconnect from a server and leave published applications running. You can log off from a remote desktop even if you do not have the remote desktop open.
You could clear up all the loginTokens
which would force everyone to log back in
Meteor.users.update({}, {$set: { "services.resume.loginTokens" : [] }});
What this does is it clear's each users loginTokens so that they wont match up if the user tries to log in, then they would have to log back in. To alter who to target change the initial query (currently {}
)
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