Aevann
117624f313
add session["GLOBAL"]
2023-03-02 22:29:22 +02:00
Aevann
c6af523b5d
handle turnstile outages
2023-02-28 19:02:03 +02:00
Aevann
17bb6dad48
blackjack fix exploit
2023-02-27 07:33:45 +02:00
Aevann
fe0b8887bc
change 1/second ratelimit to 1/2 second
2023-02-26 12:26:26 +02:00
Aevann
82a73392a9
fix errors
2023-02-26 10:49:09 +02:00
Aevann
8c495c914a
default ratelimit doesnt apply implicitly if theres other @limiter.limit before the function, so add it explicity before all functions
2023-02-26 10:41:04 +02:00
Aevann
4c35f0b07f
remove unnecessary line
2023-02-26 08:35:59 +02:00
Aevann
7aaeedea36
better ratelimiting
2023-02-26 03:42:39 +02:00
Aevann
8cf4b6fda6
reduce default admin level
2023-02-21 17:14:37 +02:00
Aevann
349fa17836
use exlamation marks instead of dots in responses to users
2023-01-27 13:57:29 +02:00
Aevann
d01d6e183a
change endpoint path to be the same as GET version
2023-01-27 11:53:04 +02:00
Aevann
75a9a20bc2
fix 500 error
2023-01-27 09:11:06 +02:00
Aevann
b23dc76d78
fix muting linking alts
2023-01-25 04:53:52 +02:00
Aevann
24edb49f3b
add jl5 (for me)
2023-01-22 10:04:49 +02:00
Aevann
e96f121f3f
tell ppl to check their spam folder just in case
2023-01-21 07:36:27 +02:00
Aevann
a40dee5bd8
improve user ratelimiting
2023-01-21 06:39:46 +02:00
Aevann
ae1eced819
minor syntax change
2023-01-03 13:34:21 +02:00
Aevann
e6e5225a42
minor fix
2023-01-03 10:00:37 +02:00
Aevann
6cbefa6e82
fix 500 error
2023-01-01 14:34:53 +02:00
Aevann
044664a25e
get rid of useless tabs and spaces
2023-01-01 13:36:20 +02:00
Aevann
8ee189022b
seething hatred
2022-12-30 21:01:47 +02:00
Aevann
c4872ecb07
Revert "attempt to fix ratelimiting user"
...
This reverts commit 99597fc36c
.
2022-12-30 20:43:13 +02:00
Aevann
99597fc36c
attempt to fix ratelimiting user
2022-12-30 20:40:58 +02:00
Aevann
9a8c986f93
attempt to fix ratelimiting user
2022-12-30 20:33:07 +02:00
Aevann
4c371408da
make /signup more friendly to retards
2022-12-30 19:29:04 +02:00
Aevann
ccfb99cb63
fix 500 error
2022-12-28 11:44:39 +02:00
Aevann
678f40ccba
consistency
2022-12-28 10:35:41 +02:00
Aevann
3b8bb2576b
fix jc mistake
2022-12-27 08:19:36 +02:00
Aevann
ff5df9e610
fix prev commit
2022-12-27 04:52:25 +02:00
Aevann
4add61d045
fix devrama jannying
2022-12-27 04:50:42 +02:00
Aevann1
3ae5292ce4
remove pcm from code
2022-12-21 14:42:41 +02:00
Aevann1
e217cc9758
give new user notifs to 3 jannies in PCM
2022-12-19 22:32:24 +02:00
Aevann1
0376124eb0
clearer notifications for hole and admin actions
2022-12-13 19:11:26 +02:00
justcool393
ab41db22b7
[DO NOT MERGE] multiple sub banners ( #59 )
...
allows multiple sub banners
Snakes note: By request of Carp, especially for WPD.
Co-authored-by: justcool393 <justcool393@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Reviewed-on: rDrama/rDrama#59
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-11 23:44:34 +00:00
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
justcool393
69a44baea7
settings: convert all to snek_case
2022-11-30 12:26:07 -06:00
justcool393
d395bcab69
logging: create somewhat sane logging
2022-11-30 12:09:31 -06:00
justcool393
b59e4cadaa
login: don't allow logged in users to attempt to login
2022-11-30 10:49:15 -06:00
justcool393
67bfe5a5bd
remove unnecessary `str()`
2022-11-29 14:29:27 -06:00
Aevann1
3d1c16044a
use abort instead of sending raw text lol
2022-11-29 01:38:41 +02:00
Aevann1
641926b425
restore diff messages to debug an issue
2022-11-27 02:16:08 +02:00
justcool393
0ff034b01b
add typing to a bunch of routes
2022-11-26 15:00:16 -06:00
Aevann1
4eb66e5802
fix login redir bug
2022-11-26 07:38:59 +02:00
Aevann1
bf4031c832
remove annoying excalmation sign in notifs
2022-11-26 01:18:24 +02:00
justcool393
23505c68b3
errors: use abort for sign up errors
2022-11-25 12:27:18 -06:00
justcool393
153fb4e2a2
[DO NOT MERGE] titlesssssssssss ( #468 )
...
* titles
* testing
* self
* Revert "self"
This reverts commit d6c12d5a5ba125feb44673f55e1fdac75f151cb5.
* Revert "testing"
This reverts commit 86d800f9fd552196b31f0e0b3891d4fc072a9bc0.
* testing on devrama
* rewrite the html head
* reference error or smth idk
* tempalte debug
* template debug redux
* default2
* rename default2 -> root, page title
* fix settings2
* include the set_variables block
* root scope variables 2
* test 3
* remove unnecessary set
* add pagetitles to all settings2 pages
* add pagetitle to casino
* remove bloat
* remove duplicate site name thingy
* page titles 2
* page titles 3
* remove duplicate imports and add page titles everywhere iirc
* ok but actually this time
* remove unnecessary newlines
* fix title lol
* >
* fsdfsfsfsfsfs
* fsfs
* template configurations
* fix 500
* reduce login template bloat
* move files and add status codes where needful
* move authfroms to login
* remove 2fa bloat
* verification code
* sign up fixes
* readability
* fssfsfsfs
* move forgot password to login/
* readability
* don't emit comments
* add page titles where needful
* gsgsgs
* modals: move to respective pages
* testing on devrama
* get home garbage out of title
* remove insane amount of icon duplication
* sign up text
* add votes pagetitle
* fix blank lines
* Revert "fix blank lines"
This reverts commit b2c54339970725d00b6fc82bb458c1757909952c.
* Fix blank lines on sign_up.html.
* title: votes.html more meaningful identifier.
* titles: Lottery, Directory, Notifications
* head final in submission.html
* fix missing comma
* >
* test
* title: /comments
* fsfsfsfsf
* titles: user_cards
* head: only load video and audio meta attributes if they actually exist
* titlessssss: /admin/lottery/participants
* titlessssssss: extra quote in search.html
* titlessssss: userpage voters.
* titties: /h/<sub>/{followers,blockers,exilees[sic]}
* test banner
* Revert "test banner"
This reverts commit c3d875d03f3e60d72a60dab7d28bf108554a5826.
* make submit.html inherit from default.html
Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 02:52:22 -06:00
justcool393
aaa6d6696e
lowercase it too
2022-11-18 14:39:52 -06:00
justcool393
fc5d78a4a1
don't do it for the POST either
2022-11-18 14:34:23 -06:00
justcool393
6f1b9014b4
fix 400: improve 4e57369e68
...
a couple of other places shouldn't redirect either
2022-11-18 14:32:00 -06:00
Aevann1
4e57369e68
dont actually redirect to /reset_2fa
2022-11-18 22:16:28 +02:00