forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/routes
justcool393 6dbad04f08 band-aid fix for frozen session issue on signup (#50)
through some reason or another, people are somehow getting cookies that aren't prepended with a dot.

this is a problem because both sessions at, as best as I can tell, mix so it tries to read from a different cookie than we write to. this essentially "freezes" the session in place. users are unable to login, logout, signup, toggle poor mode, toggle NSFW, etc.

~~this attempts to delete bad session cookies (i.e. cookies with a domain that don't start with a dot).~~

~~we don't do this on "dotless" domains (and by extension localhost) because browser support for setting cookies on FQDNs that only have one dot has tenuous support among browsers anyway).~~

~~this *may* log some people out, but... their days of being able to do stuff on the site were numbered anyway.~~

**edit: as amazing as this thought was, browsers just wipe the entire cookies completely and there's no way to specifically target dotless cookies. for an issue that affects a few users, better to just tell them to clear their cookies. if *this* doesn't work, delete service-worker.js and be done with the whole service worker crap. forever. permanently. this PR also includes some QOL improvements.**

Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: rDrama/rDrama#50
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-06 22:07:12 +00:00
..
__init__.py stop using pusher (#37) 2022-12-02 22:21:18 +00:00
admin.py allow JL3 to edit rules (#39) 2022-12-05 05:22:08 +00:00
allroutes.py band-aid fix for frozen session issue on signup (#50) 2022-12-06 22:07:12 +00:00
asset_submissions.py marseys: cache marseys and emojis and fun stuff (#15) 2022-11-27 16:59:36 +00:00
awards.py fix pin awards 2022-12-05 18:01:13 +02:00
casino.py add typing to a bunch of routes 2022-11-26 15:00:16 -06:00
chat.py remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
comments.py fix marking read from push notifs 2022-12-05 16:38:24 +02:00
errors.py Revert "https://www.youtube.com/watch?v=_904EvOUQ_M" 2022-12-02 00:37:50 +02:00
feeds.py use https whenever u can 2022-11-28 00:53:37 +02:00
front.py remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
giphy.py [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
hats.py add typing to a bunch of routes 2022-11-26 15:00:16 -06:00
jinja2.py Revert "only show "upload profile background" if user on desktop or uses transparent theme" 2022-12-05 16:25:39 +02:00
login.py band-aid fix for frozen session issue on signup (#50) 2022-12-06 22:07:12 +00:00
lottery.py add typing to a bunch of routes 2022-11-26 15:00:16 -06:00
mail.py remove ruckus.webp 2022-11-29 07:25:17 +02:00
notifications.py fix prev commit 2022-12-01 00:33:41 +02:00
oauth.py add typing to a bunch of routes 2022-11-26 15:00:16 -06:00
polls.py default response code is 200, dont need to specify it 2022-11-21 03:13:31 +02:00
posts.py dont change titles for chudded ppl posting on /h/chudrama 2022-12-05 03:21:47 +02:00
push_notifs.py stop using pusher (#37) 2022-12-02 22:21:18 +00:00
reporting.py antispam: under siege mode 2022-11-30 11:37:35 -06:00
routehelpers.py fix 500 error 2022-11-21 01:20:57 +02:00
search.py remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
settings.py add button to remove current profile background 2022-12-05 17:14:53 +02:00
special.py worldcup2022: retain backwards compat on URL. 2022-11-28 22:39:51 -05:00
static.py delete legacy route 2022-12-03 00:37:31 +02:00
streamers.py [DO NOT MERGE] import detanglation (#442) 2022-11-15 03:19:08 -06:00
subs.py truncate unnecessary logic 2022-12-05 17:10:15 +02:00
users.py fix 500 errors 2022-12-05 17:16:11 +02:00
votes.py add profile wall 2022-12-04 20:05:45 -05:00
wrappers.py minor log fix 2022-12-05 16:06:11 +02:00