You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a function like isAllowedToLogin(ResourceOwnerInterface $user): bool defined on the interface which decides wether or not a user should even be allowed to login, regardless if he'll be an admin or not, would provide a unified place for the logic to block certain users across all providers. Currently, you'd have to rely on things like userIsActive to really block out unwanted users, or bury that logic within your loadUserDetails function like the default provider does.
Again, if you like this, I'd be happy to implement it.
The text was updated successfully, but these errors were encountered:
Having a function like
isAllowedToLogin(ResourceOwnerInterface $user): bool
defined on the interface which decides wether or not a user should even be allowed to login, regardless if he'll be an admin or not, would provide a unified place for the logic to block certain users across all providers. Currently, you'd have to rely on things likeuserIsActive
to really block out unwanted users, or bury that logic within yourloadUserDetails
function like the default provider does.Again, if you like this, I'd be happy to implement it.
The text was updated successfully, but these errors were encountered: