I am running a marketplace with two types of users: “owner” and “worker”
I’d like to check if it’s “owner” or “worker” logging in, and I will show a different UI according to who is logging in.
Is there a way I can do an additional constraint when checking the login credential?
Here is what I have now:
The yellow part is what I put in now, but it’s not working. I suppose it’s because there is no “current user” yet since no one has logged in yet.
How can I add an additional constraint for login?