[英]Custom sfGuard login redirect not working in symfony
我正在使用Symfony 1.4.8和Propel作为ORM。 我已经通过创建SfGuardAuth创建了自定义Sfguard登录名。 我在一些不安全的页面(即公共页面)上创建了一个登录表单,希望在登录时启动一个登录会话。 我正在使用的代码
$this->signin = new sfGuardFormSignin(); //creating form object
鉴于
<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
<table>
<?php echo $signin; ?>
</table>
<button type="submit">submit</button>
</form>
并还在(app / frontend / modules / mymodule / config / app.yml)中配置了app.yml,因为我只想为此特定模块使用。
all:
sf_guard_plugin:
success_signin_url: mydashboard/index
success_signout_url: goodbye/index
但是在登录时它将重定向到symfonys临时模块,即http:// localhost:8080 / frontend_dev.php /
那该怎么办呢?
我认为未使用您在app / frontend / modules / mymodule / config / app.yml中的配置,因为身份验证是在sfGuardAuth模块而不是在模块中完成的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.