29 Commits

Author SHA1 Message Date
e151f97380 feat(webui): handle auth via websocket
All checks were successful
Build / build (pull_request) Successful in 48s
Now when logging in and out of the game, the webui is notified so it can refresh the nonce, removing the need for constant login requests to revalidate it.
2025-06-21 03:35:16 +02:00
45c0da6ed8 chore: fix some questionable calls to model.findById
All checks were successful
Build / build (push) Successful in 1m5s
Build Docker image / docker (push) Successful in 2m33s
2025-05-18 12:55:51 +02:00
b01376f703 chore: replace instances of find(x => x = ...) with indexOf(...)
All checks were successful
Build Docker image / docker (push) Successful in 1m16s
Build / build (push) Successful in 1m50s
2025-05-17 09:17:03 +02:00
895b9381ca chore: update eslint (#1373)
All checks were successful
Build / build (22) (push) Successful in 38s
Build / build (18) (push) Successful in 1m16s
Build Docker image / docker (push) Successful in 30s
Build / build (20) (push) Successful in 1m30s
Reviewed-on: #1373
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-03-29 15:20:54 -07:00
36d2b2dda5 feat: gifting (#1344)
Some checks are pending
Build / build (18) (push) Waiting to run
Build / build (20) (push) Waiting to run
Build / build (22) (push) Waiting to run
Build Docker image / docker (push) Waiting to run
Reviewed-on: #1344
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-03-27 12:57:44 -07:00
a622393933 chore: don't validate Nonce in query (#1341)
Some checks failed
Build Docker image / docker (push) Waiting to run
Build / build (22) (push) Has been cancelled
Build / build (20) (push) Has been cancelled
Build / build (18) (push) Has been cancelled
By asking MongoDB to simply find the account by the ID and then validating the nonce ourselves, we save roughly 1ms.

Reviewed-on: #1341
2025-03-27 03:33:27 -07:00
cf3007b744 chore: update config when admin changes their name (#1298)
Some checks failed
Build / build (22) (push) Waiting to run
Build Docker image / docker (push) Waiting to run
Build / build (18) (push) Has been cancelled
Build / build (20) (push) Has been cancelled
Reviewed-on: #1298
2025-03-23 09:06:08 -07:00
7f5592e00c chore: improve authentication and Dropped logic (#1296)
Some checks failed
Build / build (18) (push) Has been cancelled
Build / build (20) (push) Has been cancelled
Build / build (22) (push) Waiting to run
Build Docker image / docker (push) Waiting to run
- Dropped is now also unset by getAccountForRequest
- Improved how nonce is validated to avoid possible parser mismatch issues to smuggle a 0
- Updated ircDroppedController to perform only a single MongoDB operation

Reviewed-on: #1296
2025-03-23 09:05:47 -07:00
6598318fc5 feat: daily tribute (#1241)
Some checks failed
Build Docker image / docker (push) Waiting to run
Build / build (20) (push) Has been cancelled
Build / build (18) (push) Has been cancelled
Build / build (22) (push) Has been cancelled
Closes #367

Reviewed-on: #1241
2025-03-21 05:19:42 -07:00
0ffa9c6bc4 feat: clan motd (#1134)
All checks were successful
Build / build (22) (push) Successful in 39s
Build / build (18) (push) Successful in 1m0s
Build / build (20) (push) Successful in 1m3s
Build Docker image / docker (push) Successful in 34s
Reviewed-on: #1134
2025-03-09 07:47:32 -07:00
f6513420be feat: login conflict (#1127)
Some checks failed
Build / build (20) (push) Successful in 40s
Build / build (22) (push) Has been cancelled
Build / build (18) (push) Has been cancelled
Build Docker image / docker (push) Has been cancelled
Closes #1076

Reviewed-on: #1127
2025-03-09 07:40:37 -07:00
50d687e59a fix: re-enable giving ship features and mission rewards from Vors Prize after skipTutorial (#996)
All checks were successful
Build Docker image / docker (push) Successful in 32s
Build / build (20) (push) Successful in 36s
Build / build (18) (push) Successful in 1m4s
Build / build (22) (push) Successful in 1m4s
Reviewed-on: #996
Co-authored-by: OrdisPrime <134585663+OrdisPrime@users.noreply.github.com>
Co-committed-by: OrdisPrime <134585663+OrdisPrime@users.noreply.github.com>
2025-02-23 12:22:54 -08:00
13c68a75c1 feat: initial stats save (#884)
All checks were successful
Build Docker image / docker (push) Successful in 30s
Build / build (20) (push) Successful in 41s
Build / build (18) (push) Successful in 57s
Build / build (22) (push) Successful in 39s
Closes #203

Reviewed-on: http://209.141.38.3/OpenWF/SpaceNinjaServer/pulls/884
Reviewed-by: Sainan <sainan@calamity.inc>
Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
2025-02-06 04:42:59 -08:00
ef2708b510
feat: Quests1 (#852) 2025-01-24 14:13:21 +01:00
10100ae2ca
fix: more accurate inventory after skipTutorial (#755) 2025-01-20 18:25:50 +01:00
73df848f11
chore: optimise getAccountIdForRequest (#814) 2025-01-19 01:58:35 +01:00
02f4d0e821
improve: handle config.administratorNames being a string (#658) 2024-12-29 23:34:26 +01:00
d31f9f8d24
chore: fix most explicit-function-return-type warnings (#656) 2024-12-29 21:47:18 +01:00
103e9bc431
feat: add administrators, require administrator perms to change server config in webui (#628) 2024-12-23 22:44:01 +01:00
d5c829e4fe
fix: avoid spilling new database account fields into login response (#610) 2024-12-23 00:40:35 +01:00
d9c94664c3
feat: daily reset for syndicate standing (#582) 2024-12-22 00:44:49 +01:00
6294a315a8
feat: properly implement nonce (#220) 2024-05-28 13:45:06 +02:00
a96eea0e63
feat: Ship Customizations, Personal Rooms (Orbiter, Apartment) (#132)
This breaks existing accounts
2024-02-18 13:58:43 +01:00
dd99e8782c
saveLoadout and misc. (#99)
Co-authored-by: Matej Voboril <tobiah@pm.me>
2023-12-14 17:34:15 +01:00
6520284cba
Add Ship (#13) 2023-06-04 22:16:49 +02:00
b3a5479e75
Inventory Infrastructure and Example for Suits (#10) 2023-06-04 03:06:22 +02:00
Ângelo Tadeucci
108d2c621d
Use non-relative imports (#8) 2023-06-02 00:20:49 -03:00
Alan Morel
5b029cfb3b refactor: run prettier cli to format all files 2023-05-23 20:42:06 -04:00
Ângelo Tadeucci
84c825e8a7 Initial commit 2023-05-19 15:26:36 -03:00