Your issue is probably that before login in, the user is unknown, so most likely does not have yet all the info you’re expecting in your condition.
But, even before that : What do you want to achieve exactly? Why would you want to restrict login based on which role the user has?
I suppose you want to hide some content for some users, this is done after login, not before.
1 Like