Commit Graph

  • df92ff8b6f Add last activity update on verify master Flashfyre 2024-05-15 13:37:36 -04:00
  • 509ca8df12 better errors Up 2024-05-15 07:28:49 +02:00
  • f31f130c14 also check for empty Up 2024-05-15 06:47:06 +02:00
  • c17c583321 update active session if none is found Up 2024-05-15 06:46:08 +02:00
  • 76e7ba02ad always delete claimed vouchers Up 2024-05-15 04:27:53 +02:00
  • a063b1740c add missing foreign key declarations Up 2024-05-15 04:12:20 +02:00
  • e4713e6ea3 fall back to legacy save ID Up 2024-05-15 04:08:42 +02:00
  • 2aab022ce3 properly use client session ID Up 2024-05-15 04:07:47 +02:00
  • e7cff35d69 delete vouchers when claiming them Up 2024-05-15 00:50:50 +02:00
  • 174b962f19 update verify endpoint Up 2024-05-15 00:00:38 +02:00
  • e2efcd550c fix faulty sql query Up 2024-05-14 23:17:14 +02:00
  • 834d1e62a0 add foreign key constraint on client session table Up 2024-05-14 14:33:53 +02:00
  • c0aade2e65 simplify ID handling Up 2024-05-14 14:30:04 +02:00
  • 983e17c894 continue if linting fails Up 2024-05-14 13:23:22 +02:00
  • b88b3f6fab explicitly define linter config Up 2024-05-14 13:18:39 +02:00
  • c24d006f88 move linter args to config file Up 2024-05-14 13:07:07 +02:00
  • 12b0a0df0b try make linter ignore unused stuff Up 2024-05-14 13:01:29 +02:00
  • 436fce8759 add client session ID tokens Up 2024-05-14 12:54:06 +02:00
  • 8439519d8e start on splitting api call handler function Up 2024-05-12 20:42:07 +02:00
  • d70c082aa9 simplify json response writing Up 2024-05-12 20:05:46 +02:00
  • f0c283af42 merge token and uuid lookups to reduce roundtrips Up 2024-05-12 19:44:04 +02:00
  • 81853b1863 forgot to update stats column Up 2024-05-12 08:38:57 +02:00
  • a44a6c382f save data when applying vouchers Up 2024-05-12 08:30:46 +02:00
  • c06b1496a3 add watchtower in example compose file Up 2024-05-12 08:11:36 +02:00
  • 4430a18dae update example compose file Up 2024-05-12 08:05:40 +02:00
  • 5d6bfe0c22 add accounts activity index Up 2024-05-12 05:12:46 +02:00
  • 2700afafdb cleanup Up 2024-05-12 04:41:56 +02:00
  • 94df201bf7 update endpoint name Up 2024-05-12 03:42:35 +02:00
  • 884bb88cd3 add combined update endpoint Up 2024-05-12 03:34:08 +02:00
  • ab69d940e6 update action step name Up 2024-05-12 01:23:29 +02:00
  • 43f2f5a163 Merge pull request #11 from slsyy/run-golangci-lint-in-CI Up 2024-05-12 00:28:46 +02:00
  • 03865f9b94 run golangci-lint in CI Krystian Chmura 2024-05-11 14:06:47 +02:00
  • 36f353b8a6 Clean up db.go maru 2024-05-11 02:30:20 -04:00
  • 5656fb96d1 Use log.Fatal isntead of panic maru 2024-05-11 02:24:20 -04:00
  • dd013a1626 Merge pull request #8 from cgnetsec/master Up 2024-05-11 05:44:57 +02:00
  • 8c209163db Update README.md ser3n1ty 2024-05-10 20:38:28 -07:00
  • 1cec1d313d Update README.md ser3n1ty 2024-05-10 20:36:03 -07:00
  • 2704e64e38 Add newclear endpoint better-accounts Flashfyre 2024-05-10 18:07:14 -04:00
  • e97e5f73d5 Update ghcr.yml maru 2024-05-10 16:00:47 -04:00
  • d4a906a0f1 Move HTTPS-related flags in rogueserver.go maru 2024-05-10 15:50:19 -04:00
  • 693663103b Run formatter on files maru 2024-05-10 15:49:26 -04:00
  • a8502fcd3f add GitHub actions workflows and build docker image (#9) Up 2024-05-10 21:47:22 +02:00
  • b5e8094039 Don't return INVALID on seed-related function error maru 2024-05-10 15:44:35 -04:00
  • eea2266920 Remove unneeded assertion check in handleSaveData maru 2024-05-10 15:40:22 -04:00
  • 17294e5179 Fix handleDailySeed maru 2024-05-10 15:37:24 -04:00
  • b91c169b16 endpoints.go consistency maru 2024-05-10 15:33:37 -04:00
  • 3ed5f41d58 make server automatically create DB schema if not exists (#5) Up 2024-05-10 21:30:47 +02:00
  • 8a32efeaa3 Clean up rogueserver.go maru 2024-05-10 13:40:00 -04:00
  • 633142eb29 Allow serving HTTPS maru 2024-05-10 13:16:35 -04:00
  • fadd10602a Don't log ErrNoRows in savedata maru 2024-05-09 14:26:54 -04:00
  • e4de7c2391 Update database limiting code more maru 2024-05-09 14:22:20 -04:00
  • de0bd74dc2 Update database limits maru 2024-05-09 14:13:19 -04:00
  • 59ea469fb6 Don't import legacy saves if system exists in database maru 2024-05-09 05:59:48 -04:00
  • e01364e1a6 Update README.md ser3n1ty 2024-05-09 01:44:04 -07:00
  • d5e7b438f3 Update README.md ser3n1ty 2024-05-09 00:57:07 -07:00
  • b00321f501 Update README.md ser3n1ty 2024-05-09 00:51:44 -07:00
  • 4971ad9d42 Add new database limits maru 2024-05-08 20:19:33 -04:00
  • 192b777ac3 Set ArgonMaxInstances to number of cores maru 2024-05-08 20:08:10 -04:00
  • 7dbcb18ebf Use INSERT instead of REPLACE for savedata storage functions maru 2024-05-08 17:23:07 -04:00
  • 0ead2da2da Remove unused endpoint game/playercount maru 2024-05-08 15:47:56 -04:00
  • 6cb179b553 Clean up savedata.go maru 2024-05-07 20:38:12 -04:00
  • 405a578e8c manually parse all save states for now Up 2024-05-08 01:28:33 +02:00
  • 0d6539a87b continue on existing save (#3) Up 2024-05-08 01:14:07 +02:00
  • 1f95f7c042 hotfix: move save data to DB (#2) Up 2024-05-07 23:10:33 +02:00
  • 723fe48969 Add classic win count to starter data Flashfyre 2024-05-07 00:16:00 -04:00
  • 9bc8cd2b28 Need a login check oauth2 Matthew Olker 2024-05-06 14:02:10 -04:00
  • a087234aa8 Replace usernameFromRequest maru 2024-05-05 16:12:10 -04:00
  • 808a9e6c7d Remove redundant error check maru 2024-05-05 16:08:43 -04:00
  • 3553891e6e Temporarily remove session expiration check Flashfyre 2024-05-05 14:57:58 -04:00
  • 223bb6e90c Add support for some tracked run stats Flashfyre 2024-05-03 23:53:00 -04:00
  • 99e878b933 Add friendship starter data field Flashfyre 2024-05-02 17:34:11 -04:00
  • c0a23079fa Re-implement fix for data overwrites Flashfyre 2024-04-30 15:26:13 -04:00
  • 8a17845d42 Revert "Fix underlying issue with save override prevention" Flashfyre 2024-04-30 15:11:01 -04:00
  • c12c770844 Fix underlying issue with save override prevention Flashfyre 2024-04-30 15:06:37 -04:00
  • e19104c86a Prevent initial out of date message on register Flashfyre 2024-04-30 14:59:58 -04:00
  • 512a24e5c3 Remove anti cheat maru 2024-04-30 14:34:40 -04:00
  • cde572d626 Revert "Fix data override prevention on update" Flashfyre 2024-04-30 13:39:06 -04:00
  • 52756fdba3 Fix data override prevention on update Flashfyre 2024-04-30 11:17:14 -04:00
  • 786e947e09 Change 'banned' to 'limited maru 2024-04-30 00:32:55 -04:00
  • 8481626193 Relicense under AGPL maru 2024-04-29 17:26:46 -04:00
  • 235fb9c91c Add copyright notice to files maru 2024-04-29 15:32:58 -04:00
  • e8240c9c38 Rename to rogueserver maru 2024-04-29 15:22:27 -04:00
  • b52abbf7fe Ban if daily score over 20000 maru 2024-04-28 22:21:30 -04:00
  • e184e9da91 Ban if vouchers over a certain threshold maru 2024-04-28 20:59:53 -04:00
  • bc8084b70b Increment server version Flashfyre 2024-04-28 20:44:33 -04:00
  • ec33952aaa Simplify variable declaration maru 2024-04-28 17:41:00 -04:00
  • cbcc68f8e4 Add password changes maru 2024-04-28 17:27:58 -04:00
  • 4ce5a0198d Don't check token length twice in Logout maru 2024-04-26 13:17:06 -04:00
  • 54d4d9a389 Set max open MariaDB connections maru 2024-04-25 16:27:24 -04:00
  • 1ea2829f63 Increase stat refresh interval to 30 seconds maru 2024-04-25 16:16:35 -04:00
  • a1488f435e Run through formatter maru 2024-04-25 16:13:34 -04:00
  • 65e7696e7e Use tokenFromRequest in handleAccountLogout maru 2024-04-25 15:31:53 -04:00
  • 2656c0a033 Enforce HTTP method on endpoints maru 2024-04-25 15:30:12 -04:00
  • 2adb70dd7e Styling consistency maru 2024-04-25 15:11:26 -04:00
  • 6ae46dfd77 Re-add debug mode maru 2024-04-25 14:41:48 -04:00
  • 2f8c2d3f07 Match trainer and secret ID on update for data integrity Flashfyre 2024-04-25 09:56:56 -04:00
  • 849bc601f0 Remove get prefix from certain function names maru 2024-04-25 03:50:35 -04:00
  • 768900d885 Change seedCompletions to dailyRunCompletions maru 2024-04-25 03:40:22 -04:00
  • 7e3ba249df Move httpError to common.go maru 2024-04-24 20:23:20 -04:00
  • fa5dcb0052 Use ServeMux router instead of switch statement maru 2024-04-24 20:05:57 -04:00