File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -138,20 +138,6 @@ public function setRoles(array $roles): void
138138 $ this ->roles = $ roles ;
139139 }
140140
141- /**
142- * Returns the salt that was originally used to encode the password.
143- *
144- * {@inheritdoc}
145- */
146- public function getSalt (): ?string
147- {
148- // We're using bcrypt in security.yaml to encode the password, so
149- // the salt value is built-in and you don't have to generate one
150- // See https://en.wikipedia.org/wiki/Bcrypt
151-
152- return null ;
153- }
154-
155141 /**
156142 * Removes sensitive data from the user.
157143 *
@@ -168,7 +154,6 @@ public function eraseCredentials(): void
168154 */
169155 public function __serialize (): array
170156 {
171- // add $this->salt too if you don't use Bcrypt or Argon2i
172157 return [$ this ->id , $ this ->username , $ this ->password ];
173158 }
174159
@@ -177,7 +162,6 @@ public function __serialize(): array
177162 */
178163 public function __unserialize (array $ data ): void
179164 {
180- // add $this->salt too if you don't use Bcrypt or Argon2i
181165 [$ this ->id , $ this ->username , $ this ->password ] = $ data ;
182166 }
183167}
You can’t perform that action at this time.
0 commit comments