File tree 1 file changed +0
-16
lines changed
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
138
138
$ this ->roles = $ roles ;
139
139
}
140
140
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
-
155
141
/**
156
142
* Removes sensitive data from the user.
157
143
*
@@ -168,7 +154,6 @@ public function eraseCredentials(): void
168
154
*/
169
155
public function __serialize (): array
170
156
{
171
- // add $this->salt too if you don't use Bcrypt or Argon2i
172
157
return [$ this ->id , $ this ->username , $ this ->password ];
173
158
}
174
159
@@ -177,7 +162,6 @@ public function __serialize(): array
177
162
*/
178
163
public function __unserialize (array $ data ): void
179
164
{
180
- // add $this->salt too if you don't use Bcrypt or Argon2i
181
165
[$ this ->id , $ this ->username , $ this ->password ] = $ data ;
182
166
}
183
167
}
You can’t perform that action at this time.
0 commit comments