Commit Graph

164 Commits (eb98740f972fe3e87e1b7d6757a0afa6792031a6)

Author SHA1 Message Date
Aevann1 db72908da6 sneed 2022-08-01 02:43:17 +02:00
Aevann1 739268774f sneed 2022-08-01 02:41:12 +02:00
Aevann1 71748f22c2 sneed 2022-07-30 15:41:00 +02:00
Aevann1 9838b01032 sneed 2022-07-30 01:23:33 +02:00
Aevann1 684a804e6e sneed 2022-07-30 00:07:08 +02:00
Snakes 88108594ad Implement Deux login with rDrama challenge. 2022-07-13 20:36:04 -04:00
Aevann1 f5bacd8938 Revert "log ppl into deux automatically"
This reverts commit 86f7e627ea.
2022-07-13 20:33:31 +02:00
Aevann1 86f7e627ea log ppl into deux automatically 2022-07-13 20:14:07 +02:00
Aevann1 0ee6566c21 tweak spider exclusion 2022-07-11 20:43:44 +02:00
Aevann1 52a8a219ae make poorcel-mode device-specific 2022-06-27 05:46:32 +02:00
Aevann1 cff34fb3a4 reducing query volume, #2 2022-06-26 03:11:02 +02:00
Aevann1 6f6d01c1c6 actually use the get functions 2022-06-24 15:19:53 +02:00
Snakes f6b6997f61 Persist activity timestamp to users. 2022-06-20 16:25:03 -04:00
Aevann1 f60db1598d replace "g.db.query" on pkeys with the much more efficient "g.db.get" 2022-06-18 02:57:23 +02:00
Aevann1 4a98c2a639 don't whitelist fagmins 2022-06-07 12:34:46 +02:00
Snakes 5d56e71cc9 Rate limiter: fix 81e2a5a for logged-out. 2022-05-30 23:50:56 -04:00
Snakes 4ba2098612 Rate limiter: whitelist admins.
Due to presently hitting perpetual 429s after a mishap with lottery
polling on production, among past events where admins have gotten
rate-limited for doing otherwise normal admin behavior, the
flask_limiter.Limiter now has a request filter to whitelist JL2+.
Despite running on every request, I don't anticipate this undermining
the DoS prevention power of the Limiter.

It is yet unknown whether there are edge cases where running
get_logged_in_user in a different spot in the request pipeline might
e.g. subtly break the logged-in counters. This is not expected at
present, however.
2022-05-30 23:01:18 -04:00
Snakes 81e19b1aed Add can_gamble user setting.
Users now have a toggleable can_gamble setting which disables their
ability to use all chance-based gains on the site: viz. slots,
blackjack, the lottery, and treasure chests.

This only applies on invocation of commands that start gambling
games, so it should cause no bugs when toggled with e.g. active
blackjack games.

This was added for the benefit of users with actual problems with
gambling, be they past addiction or religious conviction. All future
gambling features are humbly requested to respect it.
2022-05-30 05:32:45 -04:00
Outrun Colors, LLC b9dc28e6d1 Don't show lotteries on the sister sites 2022-05-29 20:43:16 -05:00
Aevann1 3f04c69cb8 fds 2022-05-28 01:50:33 +02:00
Aevann1 758a30e166 fsd 2022-05-26 22:53:24 +02:00
Aevann1 d4f7f5497b fds 2022-05-26 22:49:36 +02:00
Aevann1 630996faee gfd 2022-05-26 22:31:08 +02:00
Aevann1 e4893c617e fd 2022-05-26 02:54:05 +02:00
Aevann1 50b995d3a0 fds 2022-05-25 22:16:26 +02:00
Aevann1 49c53cb2ff fds 2022-05-25 20:59:24 +02:00
Aevann1 162bf9dad7 no more g.timestamp y'all couldn't behave 2022-05-25 17:42:04 +02:00
Snakes 67796acc11 Fix chat by setting g.timestamp.
The users online count recently added to wrappers.py:get_logged_in_user
uses g.timestamp for its calculations. This is primarily set in
__main__.py:before_request. However, chat has requests which do not
trigger @app.before_request. To resolve this, we now set g.timestamp
in the auth_required wrapper before calling get_logged_in_user().

I think this is safe in general; there's no particular harm to setting
the timestamp _more_ frequently.
2022-05-25 06:49:02 -04:00
Aevann1 e1f298deb8 sfd 2022-05-24 22:27:27 +02:00
Aevann1 2b9dcb0c6a users here now 2022-05-24 22:19:18 +02:00
Aevann1 028563ad7d bgd 2022-05-07 08:04:14 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
Aevann1 94e6eb1ef6 sdf 2022-05-02 00:28:51 +02:00
Aevann1 a4b0565b5a sfd 2022-05-01 23:48:53 +02:00
Aevann1 6b97488355 fds 2022-04-22 17:08:42 +02:00
Aevann1 e547ad90cc fds 2022-04-16 17:04:34 +02:00
Aevann1 5a6ac9d8b2 fsd 2022-04-12 22:45:07 +02:00
Aevann1 579e81de2a site settings 2022-04-12 21:05:50 +02:00
Aevann1 bf391394a8 bad PR 2022-03-05 22:53:39 +02:00
Aevann1 b0d6490d1f vc 2022-02-14 01:07:13 +02:00
Aevann1 35aeb816d7 mn 2022-02-13 13:02:44 +02:00
Aevann1 819c2846f9 fsd 2022-02-04 06:21:47 +02:00
Aevann1 e04a8ee5f3 fsd\ 2022-02-03 09:00:43 +02:00
Aevann1 27766290a9 vxc 2022-02-03 08:39:02 +02:00
Aevann1 b1c443a301 fds 2022-01-19 11:27:51 +02:00
Aevann1 0e5218b2dc bbbb 2022-01-11 21:46:50 +02:00
Aevann1 b446532ad2 bb 2022-01-09 23:06:21 +02:00
Aevann1 b69199054c under attack 2022-01-09 17:15:02 +02:00
Aevann1 b1e9e03016 fsd 2022-01-07 22:48:49 +02:00
Aevann1 2c7a98e433 big one 2022-01-06 18:46:09 +02:00
Aevann1 3f7e92e650 sfd 2021-12-24 05:15:43 +02:00
Aevann1 91e8b1c0c2 fd 2021-12-24 05:08:07 +02:00
Aevann1 ce44366947 fds 2021-12-24 05:07:04 +02:00
Aevann1 4a0f2177fe dfs 2021-12-24 05:05:29 +02:00
Aevann1 4e98eb888e fsd 2021-12-24 05:03:26 +02:00
Aevann1 f9b4bdeeca fsdsfd 2021-12-23 20:31:29 +02:00
Aevann1 cb7e1a5518 fds 2021-12-23 20:18:25 +02:00
Aevann1 9bb18f1c83 sfddfs 2021-12-22 00:28:29 +02:00
Aevann1 25c569cc36 dsfsfd 2021-12-21 22:39:43 +02:00
Aevann1 3ee2c0749f dsfsdf 2021-12-21 22:03:13 +02:00
Aevann1 c6474d1870 sfdsdf 2021-12-21 09:57:43 +02:00
Aevann1 4135175d8a fdssfd 2021-12-20 22:03:59 +02:00
Aevann1 e2294a637c fdsfds 2021-12-19 01:42:35 +02:00
Aevann1 9eab8440d3 fdsfdsdf 2021-12-18 05:33:00 +02:00
Aevann1 daf790e150 fsdsfd 2021-12-17 19:55:11 +02:00
Aevann1 5c9206a59a fdsfsd 2021-12-17 07:21:55 +02:00
Aevann1 59e7ad155c fdsfds 2021-12-17 06:47:38 +02:00
Aevann1 103c9d1cb6 dsfsfd 2021-12-17 06:44:25 +02:00
Aevann1 fe89c82198 sffsd 2021-12-17 05:25:05 +02:00
Aevann1 4d4852976e sfdsfd 2021-12-15 21:36:19 +02:00
Aevann1 e50b2ba7e1 fdsfds 2021-12-15 21:35:17 +02:00
Aevann1 11fa6ed9a8 fdssfd 2021-12-15 21:34:24 +02:00
Aevann1 06103e07b6 fsdfds 2021-12-15 21:33:40 +02:00
Aevann1 b8350f1aba fsdsfd 2021-12-15 21:30:26 +02:00
Aevann1 c9be301462 fdssdf 2021-12-14 21:34:31 +02:00
Aevann1 3a9b1ecb3e fdsdsf 2021-12-14 20:32:22 +02:00
Aevann1 f9261d840b fdsfd 2021-12-14 00:49:20 +02:00
Aevann1 91899b3c01 sfdfds 2021-12-14 00:19:39 +02:00
Aevann1 e2a7881095 fdsfds 2021-12-14 00:14:51 +02:00
Aevann1 ded8022452 fsdfsd 2021-12-14 00:00:46 +02:00
Aevann1 5f39ec77e2 sdfsfd 2021-12-13 23:37:45 +02:00
Aevann1 fba5460031 fd 2021-11-30 19:19:55 +02:00
Aevann1 21cd29e005 sdfsfd 2021-11-16 02:05:54 +02:00
Aevann1 9e449dd8b0 redundant 2021-11-06 17:52:48 +02:00
Aevann1 34e6581f3a ffdsdf 2021-11-05 16:40:14 +02:00
Aevann1 83dcd2b198 fds 2021-11-02 13:33:36 -07:00
Aevann1 94e2c9a334 dfs 2021-10-29 04:32:23 +02:00
Aevann1 aeac766df3 misc 2021-10-25 20:08:03 +02:00
Aevann1 ef42cfdba8 send notif to carp 2021-10-23 18:10:05 +02:00
Aevann1 c9a0e91e24 flairlock 2021-10-21 22:50:00 +02:00
Aevann1 21a4298394 sdf 2021-10-21 20:06:57 +02:00
Aevann1 efa408ab2c fd 2021-10-15 16:08:27 +02:00
Aevann1 1f8cf9fc1c gfdfg 2021-10-12 08:00:24 +02:00
Aevann1 ec768f5d22 gfgf 2021-10-12 07:52:41 +02:00
Aevann1 e69dbd0ed1 gdfsd 2021-10-08 04:14:54 +02:00
Aevann1 467a236456 fg 2021-10-03 21:18:02 +02:00
Aevann1 cbb6410c52 dfs 2021-10-02 22:09:23 +02:00
Aevann1 5e716cac7c fsfs 2021-09-19 20:38:24 +02:00
Aevann1 ee3736ffed sdf 2021-09-18 15:16:40 +02:00
Aevann1 7604ffe7b2 fd 2021-09-17 13:14:45 +02:00