Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Check if token has proper roles #1082
aschempp left a comment •
Instead of checking the token instance, we should check for the roles. A 2FA token does not have any roles (https://github.com/scheb/two-factor-bundle/blob/master/Security/Authentication/Token/TwoFactorToken.php#L60-L63), which is the correct implementation to prevent security access.
We shouldn't event validate the user… just something like