I'm creating a login flow that allows/denies login access depending on if a user has a checkbox selected on their User record. If login access is denied, I want to show them a short message describing why they can't login, and then log them out.
The issue is:
After the flow decides whether they can log in or not, I can put in a new screen to tell them why they can't login. BUT, if they click "Finish" or "Next," it logs them in anyways. I tried to just do a force logout (LoginFlow_ForceLogout) via an Assignment, but that logs them out before they're able to see the message. I want to be able to (1) make the decision to not log them in (2) show them a message about WHY they can't log in (3) They click Finish and are automatically logged out.
Does anyone know what I'm missing?