I am using Symfony 1.4.8 and Propel as ORM. I have created a custom Sfguard login by creating a SfGuardAuth. I have created a login form in some pages which are not secure(ie which are public) and want that on login, it should start a login session. the code that i am using,
$this->signin = new sfGuardFormSignin(); //creating form object
in view
<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
<table>
<?php echo $signin; ?>
</table>
<button type="submit">submit</button>
</form>
and also configured app.yml in (app/frontend/modules/mymodule/config/app.yml) because i wanted this for this specific module only.
all:
sf_guard_plugin:
success_signin_url: mydashboard/index
success_signout_url: goodbye/index
but on login it redirects to symfonys temporary module ie http://localhost:8080/frontend_dev.php/
so what can be done?
我认为未使用您在app / frontend / modules / mymodule / config / app.yml中的配置,因为身份验证是在sfGuardAuth模块而不是在模块中完成的。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.