Is there a way to sign out all existing users? I added some new logic to the sign in workflows and would like my existing users to sign back in so that they go through the process.
I could add a ‘do when’ to each page that checks for the fields that users should have filled if they went through the new process, but figure this would be simpler.
Yes,
There is an action that Logs all other users out
https://manual.bubble.io/core-resources/actions/account#log-out-other-users-sessions
You can trigger it yourself and will log everyone else out but you, or you can implement it with that user, and also add an action to log that user out as well.
@bcart0v
No that action logs out other sessions that are logged in as the Current User, not all other Users
Yes do this
1 Like
My God. I’ve been reading that wrong this WHOLE TIME.
At any rate, on my app I do have a field in the User that’s a Yes/No Option, LogThisUserOut.
Every night when the Auditor runs the End of Day, it does a mass change for every user from No (If they logged in that day) to Yes, and each page load checks to see if it’s a Yes and if it is, Logs the user out and sends them to the homepage. So @ryanellman That could work in this scenario.
EDIT: Also, don’t forget to add a change when the User logs in to change the, LogThisUserOut from a Yes to a No, otherwise you will lock everyone out… (In theory)
2 Likes
Great, thank you both for the réponse, @tylerboodman and @bcart0v
That confirms what I thought. I will add a ‘do when’ to the reusable header element to manage this logic in one place.