Disable and redirect a user

Hi Bubblers

I have an app where users can interact with each other (booking, messages, questions…)
I build a simple “flag” functionnality, that allows users to flag each other in the case someone post inappropriate content. and will review each flag.

I am looking for a way to disable a user that has been flagged by others.
When a user is inactive or flagged, and logged in. I’d like to automatically redirect to a specific page, saying the account is disable and what they have to do to be unflagged.

I tried this way :
Set an option sets to identify flagged and disable users.
Created a datafield “user status” in the user tab with this option sets.

What I am trying to do is :
When current user “user status” is “flagged” or “disable” -> Log the user out -> go to page xxx.

I assumed it would work with backend workflows (either with a “custom event” or a “trigger a data event”. Log out doesn’t seem to work neither go to page (not available for Backend workflows)
I don’t want to have to put a workflow on each page as I may forgot to add it somehow in the future.

Any Ideas ?

Many thanks

Explore using the database trigger backend workflow. When you dB object’s field changes it will trigger the logic that you build.

Hey
Thanks for the answer. I tried this and it looks like it doesn’t work this way. I don’t know why.
I tried :
When current users / Users Status before change is not “inactive” and user status now is “inactive” ->Log the user out.
Doesn’t Work.
Also I believe the user will then just have to come back later and as the status field is not changing anymore they can navigate the app normally ?

  • from backend workflows you cant do : Navigation -> Go to page.

Or maybe I am missing something. Did you manage to do it yourself ?

Try just stating one condition instead of a combined one

You mean something like :
only when user now / User status is / inactive ?
I just try it, doesn’t work as well. I believe this is because it’s on backend workflows, and it doesn’t send the info to the users browser.
Is it a bug ?

This topic was automatically closed after 70 days. New replies are no longer allowed.