> Let me see your current used code please. Maybe there is still a
> mistake in binding request values to your form.

Hi Frank:
I didn't reply to you until now because I get the other form working but now 
I'm running a similar problem, thx for the help also. I try to override the 
Signin() method and in some part of the code I have this:

if ($request->isMethod('post')) {
      $this->form->bind($request->getParameter('signin'));
      if ($this->form->isValid()) {
        $values = $this->form->getValues();
        var_dump($values);
        exit();
        try {
          if ($user->doLogin($values['username'], $values['password'])) {
            die('Entro');
            $this->redirect('@homepage');
          } else {
            $this->setFlash('exception', "El usuario no existe o la 
contraseña no es válida.", 0);
          }
        }
        catch (Exception $exception) {
          $this->setFlash('exception', strip_tags($exception->getMessage()), 0);
        }

        //$this->getUser()->signin($values['user'], 
array_key_exists('remember', $values) ? $values['remember'] : false);
        $signinUrl = sfConfig::get('app_sf_guard_plugin_success_signin_url', 
$user->getReferer('@homepage'));
        return $this->redirect($signinUrl);
      } else {
        echo 'Form not valid';
      }
}

What's happening here:
1) If I login using a existent user, I mean inserted before in the 
sf_guard_user table, the form is valid and all is happy.
2) If I login using a no existent user, I mean over LDAP, the form isn't valid 
and all is ugly.

Why? Any help on this?
Cheers and thanks in advance
Ing. Reynier PĂ©rez Mira


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to