Hi,

of course you are right. I should provide you with the most important
things. Heres my submit function:
public function executeSubmit($request)
{
  $this->forward404Unless($request->isMethod('post'));

  $login    = $request->getParameter('login');
  $password = md5($request->getParameter('password'));

  if ($login == "cqcWebadmin" && $password ==
"a643f41d48385e1b1c75624463fc8a1a") {
        $this->getUser()->setAuthenticated(true);
        $this->redirect('security/thankyou');
  } else {
        $this->redirect('security/login');
  }
}

As you can see, I use a redirect and I don't use validation so far.
This runs very nicely on my local system but not on the shared host.

By the way: I'm running on symfony 1.1.3 and I use the new form system
as you already might have recognized.
Hopefully you have a clue for me.

Thanks a lot,
clueless Martin



On 7 Okt., 14:04, "julien meyer" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Maybe should you show us your submit() function ?
> Have you set validators ?
> Do you use redirect() function ?
>
> 2008/10/7 Martin Groh <[EMAIL PROTECTED]>
>
>
>
> > Hello,
>
> > I hope someone can help me with another little problem. Meanwhile I
> > did a few sites with symfony, all runnning very nice.
> > My latest gives me a little headache.
>
> > I have two applications. One frontend and a backend to manage all
> > content. The backend is secured with a simple login form.
> > The form action is defined with
>
> > <?php echo url_for('security/submit') ?>
>
> > in the template which is rendered to
>
> > <form action="/backend.php/security/submit" method="POST">
>
> > in the html output.
> > When I now submit the form all that happens is that the loginform
> > loads again. With the difference that no style sheets or javascript
> > are loaded properly, because all url are mixed up.
> > The form tag for instance, now looks like that:
>
> > <form action="/backend.php/security/submit/submit/security/submit"
> > method="POST">
>
> > I have the routing under suspect. But I dont now what is wrong. I
> > havent changed much there, execept for the homepage definition, that
> > directs to the login form now (security/login).
> > This problem only occurs in the production environment on a shared
> > host. On my system everything runs nice.
>
> > Can anyone please give me a hint? I cant see the wood anymore, there
> > are so many trees ;-).
>
> > Thanks a lot,
> > Martin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to