Is it possible to not login a user in if a condition is not true?

Hi bubblers

im trying on the login page to make a condition that if current user's user typer is employee and current users employee status in not active

but i cant get that to work.. then it hit me.. at this point it doesnt know who current user is so ofcourse it doesnt work.. but is there any other way where i can get that constraint from the user who try to login?

In my app, I let it log the user in and then check the active status, if they are active then the elements load or it takes them where they need to go. If not, display a message saying they are inactive and log them out.

that doestn sounds as a bad way to do it.. i will try look in to that :slight_smile: thank you

Local Storage

Local storage? What do you mean? :blush:

I’ve used the Cookie Plugin in the past, where you set the user a cookie and afterwards you read that cookie to identify the user. Although, Bubble does part of that lifting for you.