Commit 61e7433
committed
minor #60425 [SecurityBundle] forbid to use
This PR was merged into the 7.3 branch.
Discussion
----------
[SecurityBundle] forbid to use `hide_user_not_found` and `expose_security_errors` at the same time
| Q | A
| ------------- | ---
| Branch? | 7.3
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
`hide_user_not_found` will not have any effect if `expose_security_errors` is set. Throwing an exception early will improve DX and avoid WTF moments where one might be wondering why the "hide_user_not_found" option doesn't change anything.
Commits
-------
f758e2677a6 forbid to use "hide_user_not_found" and "expose_security_errors" at the same timehide_user_not_found and expose_security_errors at the same time (xabbuh)File tree
2 files changed
+18
-0
lines changed- DependencyInjection
- Tests/DependencyInjection
2 files changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
286 | 300 | | |
0 commit comments