I only want to have email as mode of login, I don\'t want to have username. Is it possible with symfony2/symfony3 and FOSUserbundle?
I read here http://groups.google
I was able to do this by overriding both the registration and profile form type detailed here and removing the username field
$builder->remove('username');
Along with overriding the setEmail method in my concrete user class:
public function setEmail($email)
{
$email = is_null($email) ? '' : $email;
parent::setEmail($email);
$this->setUsername($email);
}