20 Commits

Author SHA1 Message Date
Yee Jia Rong
c0a3abb0ed Fixes to make the source 32bit compatible 2025-01-08 22:04:44 +08:00
Neeraj Gupta
d3d419e12d [server] RateLimit max sessions in an hour 2024-11-29 19:33:36 +05:30
Manav Rathi
836fc951f4
Format 2024-11-28 16:06:43 +05:30
Manav Rathi
f096e084ef
Don't apply auto-first-admin if internal.admin is set 2024-11-28 16:04:04 +05:30
Manav Rathi
2196c3dbc8
Fix code that didn't even compile 2024-11-28 15:55:16 +05:30
Manav Rathi
c6872d2d35
[server] Document the internal.admin flag
Complements https://github.com/ente-io/ente/pull/4228
2024-11-28 15:42:33 +05:30
Andy
55cd084ea8
Add support for specifying a singular admin id to workaround GetIntSlice issue 2024-11-28 03:11:52 -05:00
Manav Rathi
7be9963303
[API] Remove trailing slash from inconsistent cast endpoints
None of our other endpoints have a trailing slash. Remove this inconsistency,
otherwise clients who'd not provide a trailing slash would get an unnecessary
redirect.

Note that the CORS-aware clients (web, desktop) do not automatically follow the
redirect because the ACAO is missing on the 307, so we need keep the old
endpoints around temporarily.

Tested: with web and museum running locally
2024-11-26 09:53:44 +05:30
Neeraj Gupta
4dc2d277d2 [server] Add API to terminate userSession 2024-10-22 10:16:52 +05:30
Neeraj Gupta
0947b2bbaa [server] Fix sharing validation 2024-09-13 14:14:31 +05:30
Neeraj Gupta
829b4ab436 [server] Treat firstUser as admin if admins config is empty 2024-08-24 16:35:25 +05:30
Neeraj Gupta
5ac92f5ce4 [server] Fix skip log check 2024-08-21 12:42:10 +05:30
Neeraj Gupta
9d48fa4a50 [server] Send 5xx if query to validate token fails 2024-08-14 10:22:57 +05:30
Neeraj Gupta
7b610dbc34 [server] Log request body in output for error 2024-08-13 10:26:57 +05:30
Neeraj Gupta
5d0c337bfb [server] Reduce log noise 2024-08-13 10:22:16 +05:30
Neeraj Gupta
29cf5b91a5 [server] Fix deviceLimit tracker 2024-08-03 16:37:00 +05:30
Neeraj Gupta
4694bf6b7e [server] Ratelimit add device code API for cast 2024-04-25 14:07:10 +05:30
Neeraj Gupta
7de60f1ced [server] Reduce discord message frequency 2024-03-18 10:02:13 +05:30
Neeraj Gupta
12b9ac4db6
[server] Rate limit (#1121)
## Description

## Tests
2024-03-17 09:59:59 +05:30
Neeraj Gupta
531bb344fe Import museum 2024-03-01 13:37:01 +05:30