Disable Symfony2 Login

This question may have been asked before. I searched for answers, but I did not find what I was looking for.

In Symfony 2.3, is there a way to disable the registrar for specific requests? I mean, I am using the SOAP service for my project. When I submit a login request, the username and password are dumped directly as plain text to the log file. Is there any way to stop the registration of such specific requests?

For example, when I send a request for logging in, the registrar should be disabled, but for all other requests it will work again. Is it possible?

+4
source share
1 answer

, Prod Dev environement, config.yml config_dev.yml:

, :

monolog:
  handlers:
    main:
        type:   stream
        path:   "%kernel.logs_dir%/%kernel.environment%.log"
        level:  debug
    console:
        type:   console
        bubble: false
    # uncomment to get logging in your browser
    # you may have to allow bigger header sizes in your Web server configuration
    #firephp:
    #    type:   firephp
    #    level:  info
    #chromephp:
    #    type:   chromephp
    #    level:  info

, , , !

, :

, :    http://symfony.com/doc/current/cookbook/logging/channels_handlers.html :    http://symfony.com/doc/current/reference/dic_tags.html#dic-tags-monolog

+4

Source: https://habr.com/ru/post/1530249/


All Articles