dongpian6319 2016-01-27 12:32
浏览 44
已采纳

自动重定向无法解释

In my LoginForm (username, password) I inserted a html link for forgotten passwords (/psw_forgotten). here are my routes :

psw_forgotten:
path: /psw_forgotten
defaults: { _controller: MyBundle:Login:psw_forgotten }

psw_forgotten_check:
path: /psw_forgotten_check
defaults: { _controller: MyBundle:Login:psw_forgotten_check }

psw_login:
path: /login
defaults: { _controller: MyBundle:Login:login }

psw_login_check:
path: /login_check
defaults: { _controller: MyBundle:Login:login_check }

When I click the link, the psw_fogotten route is called but there is an automatic redirection to the psw_login route.

In firebug I can see:

GET psw_forgotten 302 Found
GET Login 200 OK
....

There is no code in the Login controller for psw_forgotten route but I have no error, proving that it does not even try to go there.

Can you help ?

Thank you

  • 写回答

2条回答 默认 最新

  • duanhao8540 2016-01-27 12:38
    关注

    Your route for psw_forgetten_check is into a firewall symfony. You must declare this route out of firewall security symfony.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 单片机无法进入HAL_TIM_PWM_PulseFinishedCallback回调函数