diff options
| author | Tres Seaver <tseaver@palladion.com> | 2024-06-09 21:04:45 -0400 |
|---|---|---|
| committer | Tres Seaver <tseaver@palladion.com> | 2024-06-09 21:11:38 -0400 |
| commit | e72d437280d39bf8a8f3f62c6987268537ad5b11 (patch) | |
| tree | 6318d2ba12327906dde9d387372944627f3eca3b /README.rst | |
| parent | c9235146e0102d03bb4548711cd0b3b0637d81fa (diff) | |
| download | pyramid-e72d437280d39bf8a8f3f62c6987268537ad5b11.tar.gz pyramid-e72d437280d39bf8a8f3f62c6987268537ad5b11.tar.bz2 pyramid-e72d437280d39bf8a8f3f62c6987268537ad5b11.zip | |
fix: store 'came_from' information in the session
- As with the previous commit, we want to avoid trusting user-supplied data
from the query string or form parameters when constructing redirect URLs.
- Storing the route name and matchdict for the view being forbidden in
the session allows us to construct the redirect URL on successful
login cleanly.
- In order to clarify that the logic of storing the 'came from'
information is separate from rendering or processing the login form,
this PR splits the `@forbidden_view` mapping onto a separate view function.
Diffstat (limited to 'README.rst')
0 files changed, 0 insertions, 0 deletions
