rDrama/files/classes
justcool393 1ae3dc85c2
Fix: Redirect loop on formkey or nonce mismatch.
* fix 401-302-401-302-429 loop

* don't logout users on bad form key, just treat the request as unauthenticated

* Handle None/empty case in validate_formkey.

A supplied empty formkey, or the lack of a supplied formkey (None) is not a valid formkey. Handle this inside the function rather than at the call-site.

* Validate as false if no hashstr or string

Co-authored-by: Snakes <104547575+TLSM@users.noreply.github.com>
2022-12-17 11:20:27 -06:00
..
__init__.py Volunteer Janitor: Record accepted tasks. 2022-12-01 18:53:24 -08:00
alts.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
award.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
badges.py Remove special cases for unused awards. 2022-11-09 20:37:04 -06:00
clients.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
comment.py Implement #380: remove signatures feature. 2022-11-09 20:37:04 -06:00
domains.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
exiles.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
flags.py Fix migrations for real this time 2022-07-09 06:33:41 -05:00
follows.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
marsey.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
mod.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
mod_logs.py remove "meme admin" functionality 2022-11-07 03:33:56 -06:00
notifications.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
saves.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
sub.py Split SITE_NAME into computer-readable SITE_ID and human-readable SITE_TITLE. 2022-07-31 18:53:18 -05:00
sub_block.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
submission.py Implement #380: remove signatures feature. 2022-11-09 20:37:04 -06:00
subscriptions.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
user.py Fix: Redirect loop on formkey or nonce mismatch. 2022-12-17 11:20:27 -06:00
userblock.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
usernotes.py Adding usernotes. 2022-05-16 11:53:24 -05:00
views.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00
volunteer_janitor.py Volunteer Janitor: Response recording. 2022-12-01 18:53:24 -08:00
votes.py Add migrations using alembic. 2022-05-17 18:55:17 -05:00