我使用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是名称的小写字段。
现在,如果用户输入大写字母,他将无法登录。
如何将他正在制作的每个输入变为小写?
谢谢!