Mia
badb213db9
OAuth: Add a page to list authorized applicationons for a user
2023-08-18 17:37:43 -05:00
Mia
d17b138d36
OAuth: Inform users what account they're logged in as
2023-08-18 17:03:05 -05:00
Mia
308b16998b
Add documentation for OAuth2 functionality
2023-08-18 16:41:47 -05:00
Mia
79ed5ac53d
OAuth: Add refresh token endpoint
2023-08-16 17:11:22 -05:00
Mia
98468bfd15
Implement origin checking on OAuth clients
2023-08-15 17:19:41 -05:00
Mia
176a71b801
Support OAuth ( #12 )
...
* WIP
* rebase kinda borked, handle it
* linter stuff
* Dammit i swear I had linted this
* Don't require a challstr
* add schemas
* modify some stuff
* remove register action
* Remove the inner action too
* Prettify page
* Shift stuff down
* Fix jquery loading
* specify message
* Make client typing more consistent in token table
* Sanitize redirect URL, also make the page html a top-level constant
* Escape client information too
* Escape URI, fix checks
2023-08-14 23:10:01 -05:00
AnnikaCodes
63bedc2b3c
Ladder: Properly truncate rpnum ( #17 )
...
Ladder: Add missing truncation/bounding
2023-07-28 00:39:07 -07:00
gigalh128
da34bdbee4
Add missing truncation
2023-07-24 20:25:44 -04:00
AnnikaCodes
1186bcfb4a
Ladder: Set current gen to 9 for decay purposes ( #14 )
...
Set current gen to 9 for Elo decay purposes
2023-07-09 11:40:06 -07:00
Mia
09dc32405f
Session: Improve existing user check to fix crash in addUser
2023-05-17 17:12:28 -05:00
Mia
a5a18b5e23
Ensure pulls error correctly
2023-04-20 19:30:11 -05:00
Mia
1410504226
Actions: Ensure the right commands are executed in rebuildclient
2023-04-20 19:26:51 -05:00
Mia
eee2f5bbbb
Support full rebuilds in the rebuildclient action
2023-04-13 22:16:52 -05:00
Mia
55af18fe87
Support rebuilding the client through an action ( #15 )
2023-04-13 20:03:19 -07:00
Mia
47d76fa95b
Fix setting CORS for body sids
2023-04-03 09:45:37 -05:00
adrivrie
308ce8941d
Set current gen to 9 for ladder Elo decay purposes
2023-04-02 16:30:37 +02:00
Mia
8f4cc5f54a
Remove trailing space from comment
...
I really hate that local linter doesn't catch that.
2023-03-28 22:07:18 -05:00
Mia
52840af23e
Set CORS headers when sid is sent directly in the URL
2023-03-28 20:37:36 -05:00
Mia
f827c57d12
Further optimize string encoding
2023-03-27 17:24:18 -05:00
Mia
47c9692e8c
Use async signing instead of sync
2023-03-27 17:05:40 -05:00
Mia
a232d6b19a
Fix GXE rounding
2023-03-27 14:44:59 -05:00
Mia
38556e3962
Fix standing actions
2023-03-27 11:38:01 -05:00
Mia
970aec08b1
Add pg to package.json
2023-03-27 09:38:22 -05:00
Mia
7565fed36c
Re-add support for instead of
2023-03-26 14:38:58 -05:00
Mia
87788aa9ad
Fix crash when trying to register existing names
2023-03-26 14:22:14 -05:00
Guangcong Luo
353762f8b2
Properly fix request batching
2023-03-26 03:05:01 -07:00
Mia
0f049d1dba
Fix request batching
2023-03-26 04:58:04 -05:00
Guangcong Luo
a36804d03b
Support non-mainservers uploading replays
...
(Also refactor prepreplay a little.)
2023-03-26 02:55:44 -07:00
Guangcong Luo
a24041dec7
Database: Strict API for select/get functions
2023-03-26 02:54:50 -07:00
Mia
a56ac973ae
Fix uploading replays
2023-03-26 03:41:39 -05:00
Guangcong Luo
d12a69dbbf
Fixes for actions.ts
...
No refactors here, either, just some basic changes.
A bug with `ladderget` was fixed, and `errorip` is now only used in
situations where it'd be recognized.
2023-03-26 00:56:11 -07:00
Mia
3b8515e814
Fix build
2023-03-26 02:14:24 -05:00
Mia
070affe960
Add standing endpoints for permalocks
2023-03-20 13:29:52 -05:00
Guangcong Luo
19c0ca9749
Improve replays.ts
...
I wouldn't call this a refactor; I'm just improving doc comments,
rearranging, and improving typing.
2023-03-16 03:31:16 -07:00
Mia
57521b3384
Add updatenamecolor action
2023-03-15 08:22:12 -05:00
Mia
9d8fd69b57
Fix uploading replays
...
toID was removing the dash in the replay's id, so it was looking for the wrong prepped replay entry.
2023-03-14 09:37:49 -05:00
Guangcong Luo
a5eb099668
Fix crash when inserting null values into mysql
2023-03-13 07:33:15 -07:00
Guangcong Luo
8046f6f417
Fix invalid database insertions
2023-03-13 02:17:03 -07:00
Guangcong Luo
988c28b360
Minor cleanup
2023-03-12 22:22:00 -07:00
Guangcong Luo
cd9d14a9e5
Remove unused interface DispatcherOpts
...
(Was refactored out in a previous refactor)
2023-03-12 16:13:49 -07:00
Mia
26641f8f1b
Database: Fix crash in insertion
2023-03-12 17:30:28 -05:00
Guangcong Luo
c4c14018aa
Further fix name escaping in SQL
2023-03-12 15:01:17 -07:00
Mia
184dab72b1
Database: Fix crash and remove nullish coalescing
2023-03-12 16:50:11 -05:00
Guangcong Luo
64cddf4fda
Fix convering name lists to SQL
2023-03-12 14:46:24 -07:00
Guangcong Luo
81451173b7
Refactor server.ts
2023-03-11 23:41:50 -08:00
Guangcong Luo
a28d2c70b4
Actually shut down gracefully
2023-03-11 15:29:14 -08:00
Guangcong Luo
0da0e11f81
Space out actions.ts
2023-03-11 04:47:57 -08:00
Guangcong Luo
e4f5545074
Refactor ladder.ts
...
The PHP ladder implementation has been full of tech debt for a while.
Fortunately, TypeScript makes it _much_ easier to refactor this sort of
thing. This is the sort of refactor I never would have bothered
attempting in PHP, but TS makes it really easy to clear all the tech
debt.
The idea of caching a ladder entry in a user object may be useful
in the sim server, but it was really dumb here.
2023-03-11 04:43:57 -08:00
Guangcong Luo
1e6cf400e9
Create utils.ts
...
We have six util functions sort of haphazardly strewn around this
codebase; enough to make a utils.ts.
2023-03-11 03:30:49 -08:00
Guangcong Luo
b3a868ef99
Add new object SimServers for handling sim servers
2023-03-11 03:30:44 -08:00