hello!
i want to know if there is a way to like edit a data and it applies to all other users.
Like i will log out everyone from the website all together, without doing it one by one.
hello!
i want to know if there is a way to like edit a data and it applies to all other users.
Like i will log out everyone from the website all together, without doing it one by one.
You can have a ‘Log out’ (yes/no) field on a ‘Website’ data type.
Then in all of your pages (in a reusable, for example, could be in the header if it’s in all pages) add a workflow ‘Do when condition is true’ with the condition that if ‘Log out’ is ‘yes’ → ‘Log the user out’.
You change ‘Log out’ to ‘yes’ on the database and everyone on the app will be logged out.
i didnt get what you exactly mean. i didnt mean the workflow, i mean from the data from the App Data.
i want somehow when i change “Logged In” to “No”. All users get logged out.
I don’t know of a way to do it within the area where you can view the App Data.
When I’ve had to make global changes to data I’ll create a special workflow on a private page that changes a list of things.
First, we’d need a way to store their login status. We might do this by, once they login, change a Users field “logged in” = true.
Then if Current Users logged in is no log user out
NOW
Let’s say you have an admin panel. Let’s put a button on it that says “Log User’s out”
Inside of this workflow might look something like this:
Make changes to a list of Users
Do a search for Users
Constraint: logged in is yes
:each items logged in = no
tried it but it doesnt work. after adding “:each logged in = no” it shows an issue.
Send me a pic of how you have it set up
sure. ill do it once i am on Bubble again. currently doing some other work.
This topic was automatically closed after 70 days. New replies are no longer allowed.