Symfony FOSUserBundle - 无法通过电子邮件登录

时间:2015-12-02 15:29:54

标签: php symfony fosuserbundle

我正在使用Symfony 2.8和FOSUserBundle,我无法通过电子邮件登录我的应用程序。

我的security.yml包含

providers:
        fos_userbundle:
            id: fos_user.user_provider.username_email

但即使我收到Invalid credentials错误:POST /login_check的/ Profiler表示Doctrine仅为用户名生成查询:

SELECT t0.username AS username_1, t0.username_canonical AS username_canonical_2, t0.email AS email_3, t0.email_canonical AS email_canonical_4, t0.enabled AS enabled_5, t0.salt AS salt_6, t0.password AS password_7, t0.last_login AS last_login_8, t0.locked AS locked_9, t0.expired AS expired_10, t0.expires_at AS expires_at_11, t0.confirmation_token AS confirmation_token_12, t0.password_requested_at AS password_requested_at_13, t0.roles AS roles_14, t0.credentials_expired AS credentials_expired_15, t0.credentials_expire_at AS credentials_expire_at_16, t0.id AS id_17 FROM users t0 WHERE t0.username_canonical = ? LIMIT 1

怎么了?

0 个答案:

没有答案