InsaLan / insalan.fr

InsaLan website.

Home Page:https://www.insalan.fr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Team password hashing

halfa opened this issue · comments

As the team name is used in the password hashing as follows :

$container = $this->getConfigurationPool()->getContainer();
$factory = $container->get('security.encoder_factory');
$encoder = $factory->getEncoder(new User());
$e->setPassword($encoder->encodePassword($e->getPlainPassword(), sha1('pleaseHashPasswords'.$e->getName())));

it is currently impossible to change the team name without changing the associated password !