Description:
Been confused for a bit now. Every time I click the button logout I return to the login page, which is good. Though when I go to log back in, I am greeted with the message (alert) that is that the users account needs to be accepted by an admin (The account is accepted). (This is a CAD). I’m able to get in by clicking ‘run as’ in app data. Screenshots: LOGIN WORKFLOW:
I may be wrong, but your issue may be that your are asking to see if the current user IsApproved before they are logged in, so they wont be the current user. try changing the arguments to:
Only when: Search for users (email =user names input) :First item’s IsApproved is “no”
Only when: Search for users (email =user names input) :First item’s IsApproved is “Yes”