security(界面访问控制)

  1. 作者QQ:67065435 QQ群:821635552

  2. 本站内容全部为作者原创,转载请注明出处!

  3. 参考链接

  4. app/config/config.yml

    security:
        providers:
            main:
                memory:
                    users:
                        admin:
                            password: 123456
                            roles: 'ROLE_ADMIN'
        encoders:
            Symfony\Component\Security\Core\User\User: plaintext
        firewalls:
            dev:
                pattern: ^/(_(profiler|wdt)|css|images|js)/
                security: false
            main:
                http_basic: ~
                form_login: ~
        access_control:
            - { path: ^/admin, roles: ROLE_ADMIN }
    
Copyright © 豆包嘿嘿~ 2012-∞ 冀ICP备17033181号 all right reserved,powered by Gitbook修订: 2020-08-19 14:05:41

results matching ""

    No results matching ""