This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

secure succes issue on doctrine sfguard

Questions relating to sfGuardPlugin or other user management plugins

secure succes issue on doctrine sfguard

by vtserej » Tue Feb 22, 2011 10:56 pm

i have a problem with sfguard, when i try to access a module and i dont have the proper credentials i am redirected to a secure succes page
the problem is that when i try to log in from that page always redirects mi to the homepage without loggin, when i dive to the code there is a condition
if(is athenticated)
this->redirect(homepage)

of course i am athenticated but i dont have the proper credentials, that issue keeps me from relogging when i try to access to a page wich i dont have credentials. I wantt
to remove that line of code but i am afraid to broke something
what should i do
Thanks in advance
vtserej
Junior Member
 
Posts: 2
Joined: Wed Jan 26, 2011 3:37 pm

Re: secure succes issue on doctrine sfguard

by myuser » Wed Aug 10, 2011 4:53 pm

Perhaps you should test if you are authenticated then test if you have the proper credentials and show a different page that says 'you do not have the proper credentials'. That's the best way I see of solving your problem.
Symfony 1.4.11
Centos 5.6
(PostgreSQL) 8.3.11
PHP 5.2.13
myuser
Member
 
Posts: 93
Joined: Sat Jul 17, 2010 3:51 am