Restricting the Login button with the condition

0
Hi Forum, I have an application where the admin will validate the newly registered users using approve and reject buttons, the approve and reject logic is working fine, I want to restrict the login button using visibility restriction, I only want it to be visible when the request has been approved, there is already a nanoflow implemented for the login logic, so once the request is approved that should reflect in the login logic, how do I do this? How do I retrieve the approved login this flow to restrict it? Please put out some of your ideas on solving this
asked
1 answers
0

You can't hide or show a login button if the user hasn't logged in yet.

You could set the attribute user/Active false on registration and true when validated, but then unapproved users can't login and won't know why.

You could also assign a specific userrole on registration, one that can see or do nothing except login and be taken to a page explaining their registration has yet to be approved (or has been denied). And when approved, assign the proper userrole(s).

 

 

 

answered