我正在尝试使用FOSUserBundle的现有用户表,但我收到了一个奇怪的错误:
由于系统问题,无法处理身份验证请求。
我的用户表似乎与FOSUserBundle有很大不同。
列是:
id
name
email
password
salt
role
我认为这是问题,因为当我查看日志文件时,我会看到如下错误:
doctrine.DEBUG: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 ...
然后:
security.INFO:身份验证请求失败。 {" exception":" [object](Symfony \ Component \ Security \ Core \ Exception \ AuthenticationServiceException(code:0):
我的假设是,因为我的架构没有大部分列。那么我该怎么做才能纠正这个问题呢?我绝对必须拥有那些吗?