Development

#9633 (sfDoctrineGuardPlugin: User can login only with username. Login with e-mail doesn't work.)

You must first sign up to be able to contribute.

Ticket #9633 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

sfDoctrineGuardPlugin: User can login only with username. Login with e-mail doesn't work.

Reported by: pdrosos Assigned to: Jonathan.Wage
Priority: minor Milestone: plugins
Component: sfDoctrineGuardPlugin Version: 1.4.10
Keywords: sfDoctrineGuardPlugin, username, email, login Cc:
Qualification: Unreviewed

Description

Hello!

I encountered a little issue in the sfDoctrineGuardPlugin. User can login only with username. Login with e-mail doesn't work. After exploring the code I found the problem in sfDoctrineGuardPlugin/lib/validator/sfGuardValidatorUser.class.php on line 44:

$user = $this->getTable()->retrieveByUsername($username);

must be replaced with:

$user = $this->getTable()->$method($username);

Best regards, Pavlina

Change History

09/01/11 18:07:05 changed by gimler

  • status changed from new to closed.
  • resolution set to fixed.

fixed in r30561