区分大小写提供程序使登录失败

时间:2014-11-08 12:15:17

标签: security symfony authentication


我使用security.yml

设置了登录过程
form_login:
                login_path: /a/login
                check_path: /login_check
                username_parameter: inputUsername
                password_parameter: inputPassword
                provider: users
                csrf_provider: form.csrf_provider
                success_handler: ng.security.authentication_handler
                failure_handler: ng.security.authentication_handler
            remember_me:
                key:      "%secret%"
                lifetime: 31536000 # 365 days in seconds
                path:     /
                domain:   ~
            pattern:   ^/
            anonymous: ~
            logout:
                path:   /logout
                target: /

我的提供者是:

providers:
    users:
        mongodb: {class: ng\Nundle\Document\Users, property: lname}

lname是名称的小写字段。 现在,如果用户输入大写字母,他将无法登录。 如何将他正在制作的每个输入变为小写? 谢谢!

0 个答案:

没有答案
相关问题