From 21d5ff1e87df6e791d81b8b41e6030f28476cf7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 8 Sep 2021 18:33:51 +0200 Subject: [PATCH] Fix encodePassword renaming in hashPassword --- Controller/DefaultController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Controller/DefaultController.php b/Controller/DefaultController.php index 32ab736..6fed8f5 100644 --- a/Controller/DefaultController.php +++ b/Controller/DefaultController.php @@ -148,7 +148,7 @@ class DefaultController extends AbstractController { $data = $reset->getData(); //Set password - $data->setPassword($this->hasher->encodePassword($data, $data->getPassword())); + $data->setPassword($this->hasher->hashPassword($data, $data->getPassword())); //Queue snippet save $this->manager->persist($data); @@ -472,14 +472,14 @@ class DefaultController extends AbstractController { //Set data $data = $form->getData(); - //Set encoded password - $encoded = $this->hasher->encodePassword($user, $user->getPassword()); + //Set hashed password + $hashed = $this->hasher->hashPassword($user, $user->getPassword()); //Update pass - $pass = $this->slugger->hash($encoded); + $pass = $this->slugger->hash($hashed); //Set user password - $user->setPassword($encoded); + $user->setPassword($hashed); //Persist user $this->manager->persist($user); @@ -741,7 +741,7 @@ class DefaultController extends AbstractController { $registerMail =& $this->config['register']['mail']; //Set password - $user->setPassword($this->hasher->encodePassword($user, $user->getPassword())); + $user->setPassword($this->hasher->hashPassword($user, $user->getPassword())); //Persist user $this->manager->persist($user); -- 2.41.1