Commit 8507625
authored
Restore eraseCredentials() for Symfony 7.3 compatibility and manually clear plainPassword after hashing
- Re-adds the eraseCredentials() method to the User entity, which is still required by the UserInterface in Symfony 7.3.
Although deprecated since Symfony 7.1, it must remain until Symfony 8.0 for compatibility.
- Adds a manual clearing of the plainPassword field in the password processor after hashing.
Since eraseCredentials() is no longer called automatically, sensitive data must now be cleared explicitly to avoid leaving passwords in memory or logs.1 parent 4f9136c commit 8507625
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
142 | 153 | | |
143 | 154 | | |
144 | 155 | | |
| |||
251 | 262 | | |
252 | 263 | | |
253 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
254 | 268 | | |
255 | 269 | | |
256 | 270 | | |
| |||
0 commit comments