From e84d43b3f1ae0856bd21b15835cddaf9d2c30d01 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 6 Sep 2018 22:04:49 +0200 Subject: [PATCH] Deleted unnecessary salt functions --- application/src/Entity/User.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/application/src/Entity/User.php b/application/src/Entity/User.php index 5a11b0a..30778c2 100644 --- a/application/src/Entity/User.php +++ b/application/src/Entity/User.php @@ -23,14 +23,10 @@ class User extends AbstractSource implements UserInterface public function __construct() { $this->isActive = true; - // may not be needed, see section on salt below - // $this->salt = md5(uniqid('', true)); } public function getSalt() { - // you *may* need a real salt depending on your encoder - // see section on salt below return null; } @@ -50,8 +46,6 @@ class User extends AbstractSource implements UserInterface $this->id, $this->username, $this->password, - // see section on salt below - // $this->salt, )); } @@ -62,8 +56,6 @@ class User extends AbstractSource implements UserInterface $this->id, $this->username, $this->password, - // see section on salt below - // $this->salt ) = unserialize($serialized, array('allowed_classes' => false)); } }