Is there a way to prevent concurrent logins?

Is there any way to prevent a user being logged in more than once at the same time?


Haven’t tried this myself, but you can learn about logging IP addresses in this post:

Also, you can install ipiphy’s plugin which can help get the user’s IP address.

At the moment, logging a user out and then logging them back in, is a bit of a hack job inside of the Bubble editor. One idea, would be to design your app so that it stores all of your users’ passwords in a separate table/Thing. Then you can have a workflow store their password and email as a custom state…use the workflow to log the user out…then log the user back in using the username and password that you just stored in the custom state. Not ideal from a security perspective, but it should prevent concurrent logins.

Here’s a tutorial I just wrote about it:

1 Like