在双向托管中部署后,“身份验证失败”

时间:2019-09-05 09:50:18

标签: apache symfony symfony4

我从Symfony4演示应用程序创建了一个Web应用程序,包括登录系统和多语言支持。 所有这些都可以与端口8000中的内置Apache服务器完美配合。 -当我配置了Xamp apache时,我需要在“ public”文件夹中生成“ .htaccess”文件,以使网站正常运行(composer需要symfony / apache-pack),但最终它可以工作了。 -现在,我将该应用程序部署在一个共享的托管服务器中,并正确配置了.env,可以查询数据库的工作,但是我无法登录到Webapp。

您是哪里人? 谢谢您的帮助!

  

[2019-09-05 11:05:38] request.INFO:匹配的路由“ security_login”。   {“ route”:“ security_login”,“ route_parameters”:{“ _ route”:“ security_login”,“ _ controller”:“ App \ Controller \ SecurityController :: login”,“ _ locale”:“ en”},“ request_uri”: “ http://xxx.xxxx.com/en/login”,“方法”:“ GET”}   [] [2019-09-05 11:05:38] security.INFO:填充了TokenStorage   使用匿名令牌。 [] [] [2019-09-05 11:05:39] request.INFO:   匹配的路线“ _wdt”。   {“ route”:“ _ wdt”,“ route_parameters”:{“ _ route”:“ _ wdt”,“ _ controller”:“ web_profiler.controller.profiler :: toolbarAction”,“ token”:“ 984d25”},“ request_uri”: “ http://xxx.xxxx.com/_wdt/984d25”,“方法”:“ GET”}   [] [2019-09-05 11:05:43] request.INFO:匹配的路由“ security_login”。   {“ route”:“ security_login”,“ route_parameters”:{“ _ route”:“ security_login”,“ _ controller”:“ App \ Controller \ SecurityController :: login”,“ _ locale”:“ en”},“ request_uri”: “ http://xxx.xxxx.com/en/login”,“方法”:“开机自检”}   [] [2019-09-05 11:05:43] doctrine.DEBUG:选择t0.id AS id_1,   t0.full_name AS full_name_2,t0.username AS username_3,t0.email AS   email_4,t0.password AS密码_5,t0.roles AS角色_6 FROM xxx_user   t0在哪里t0.username =? LIMIT 1 [“ pierre_admin”] [] [2019-09-05   11:05:43] security.INFO:身份验证请求失败。   {“例外”:“ [对象]   (Symfony \ Component \ Security \ Core \ Exception \ BadCredentialsException(代码:   0):凭据错误。在   /home/xxxxcom/xxxx.com/xxx_xxxx_com/vendor/symfony/security-core/Authentication/Provider/UserAuthenticationProvider.php:85,   Symfony \ Component \ Security \ Core \ Exception \ BadCredentialsException(代码:   0):输入的密码无效。在   /home/xxxxcom/xxxx.com/xxx_xxxx_com/vendor/symfony/security-core/Authentication/Provider/DaoAuthenticationProvider.php:58)“}   [] [2019-09-05 11:05:43] security.DEBUG:身份验证失败,   重定向已触发。 {“ failure_path”:“ security_login”} [] [2019-09-05   11:05:43] request.INFO:匹配的路由“ security_login”。   {“ route”:“ security_login”,“ route_parameters”:{“ _ route”:“ security_login”,“ _ controller”:“ App \ Controller \ SecurityController :: login”,“ _ locale”:“ en”},“ request_uri”: “ http://xxx.xxxx.com/en/login”,“方法”:“ GET”}   [] [2019-09-05 11:05:43] security.INFO:填充了TokenStorage   使用匿名令牌。 [] [] [2019-09-05 11:05:43] request.INFO:   匹配的路线“ _wdt”。   {“ route”:“ _ wdt”,“ route_parameters”:{“ _ route”:“ _ wdt”,“ _ controller”:“ web_profiler.controller.profiler :: toolbarAction”,“ token”:“ 47fb65”},“ request_uri”: “ http://xxx.xxxx.com/_wdt/47fb65”,“方法”:“ GET”}   []

1 个答案:

答案 0 :(得分:0)

简单答案;) -PHP 7.1不适用于Symfony4 -移至7.2效果很好