Home > Software engineering >  log out banned user in symfony?
log out banned user in symfony?

Time:11-09

How can I log out active session of banned user with Symfony?

This is not working

security:
    always_authenticate_before_granting: true

this is error

 The security option "always_authenticate_before_granting" cannot be used when "enable_authenticator_manager" is set to true. If you rely on this behavior, set it to false

CodePudding user response:

Try below code :

# config/packages/security.yaml
security:
    # ...
    enable_authenticator_manager: falstr

CodePudding user response:

It should be:

# config/packages/security.yaml

security:
    always_authenticate_before_granting: true
    enable_authenticator_manager: false

Nilesh's answer is right but there is a typo.

  • Related