Commit Graph

287 Commits

Author SHA1 Message Date
Oliver Eyton-Williams
e8b15a255b feat(api): handle missing endpoints (#55429) 2024-07-08 13:07:16 +02:00
Oliver Eyton-Williams
fbf28bbb4c fix(api): remove / handler (#55428) 2024-07-05 20:50:53 -07:00
Oliver Eyton-Williams
669b4908b1 fix(api): CSRF-token should not be httpOnly (#55365) 2024-07-01 21:54:01 +02:00
Shaun Hamilton
1de602814f feat(api): add updateCount field to user (#55349)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2024-07-01 08:13:10 -07:00
Oliver Eyton-Williams
766e982040 fix(api): relax cookie settings in development (#55351)
Co-authored-by: Naomi the Technomancer <accounts+github@nhcarrigan.com>
2024-07-01 08:09:39 -07:00
Shaun Hamilton
253272f35c fix(api): use HOME_LOCATION var in tests (#55386) 2024-07-01 08:06:00 -07:00
Oliver Eyton-Williams
197becc52a fix(api): handle concurrent challenge submissions (#55336)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2024-06-27 12:08:53 +00:00
Oliver Eyton-Williams
a22e90c10d fix(api): use generic error message if CSRF error (#55264) 2024-06-27 10:47:23 +02:00
Oliver Eyton-Williams
512547e76c refactor(api): sensible default cookie config (#55227) 2024-06-27 08:44:47 +00:00
Oliver Eyton-Williams
22e74e6406 feat(api): port /confirm-email to new api (#54975)
Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>
2024-06-27 10:07:53 +02:00
Oliver Eyton-Williams
fd1bf0dd5a test: minor fix to how cookies are passed around (#55259) 2024-06-21 08:36:46 -07:00
Oliver Eyton-Williams
dda9c929b0 fix(api): clear cookies on account/delete (#55260) 2024-06-21 16:39:31 +02:00
Oliver Eyton-Williams
589e891c26 fix(api): narrow serializers for update-my-email (#55178) 2024-06-20 20:20:08 +02:00
Oliver Eyton-Williams
4c412bff9a chore(api): remove unused session handling (#55240) 2024-06-20 20:18:16 +02:00
Oliver Eyton-Williams
19b5134732 fix(api): use challenge helper to update completed challenges (#55046) 2024-06-20 10:44:55 +02:00
Oliver Eyton-Williams
517a351a28 feat(api): send errors to Sentry (#55208)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2024-06-19 17:36:41 +05:30
Oliver Eyton-Williams
0916d1bb49 test: check reporting user sends an email (#55166) 2024-06-15 11:34:20 +05:30
Oliver Eyton-Williams
14df93bcef fix(api): use generic error handler with Sentry (#55176) 2024-06-13 22:48:16 +05:30
Oliver Eyton-Williams
b54edc7e1c feat(api): send message to Sentry if duplicate accounts (#55171) 2024-06-13 19:45:11 +05:30
Oliver Eyton-Williams
8bcf080ad2 feat(api): GET /api/users/exists (#54875) 2024-06-12 12:01:17 -05:00
Shaun Hamilton
63a3b8ac05 fix(api): unsubscribe all subscribed emails (#54953) 2024-06-11 16:14:00 +02:00
Oliver Eyton-Williams
a8f7e15dc2 feat(api): api/users/get-public-profile (#54729)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2024-06-10 12:46:55 -05:00
Oliver Eyton-Williams
84a41a4da8 feat(api): finish update-my-email endpoint (#54921)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2024-06-03 09:08:42 +02:00
Oliver Eyton-Williams
dae7701b1a fix(api): reset all claimed certs during reset (#54883) 2024-05-28 09:03:43 -07:00
Oliver Eyton-Williams
6fe2b0811f fix(mailhog): use docker network address in containers (#54877) 2024-05-23 11:21:32 +02:00
Oliver Eyton-Williams
aae96b3af9 fix(api): update-my-username response body (#54901) 2024-05-22 16:44:36 -07:00
Oliver Eyton-Williams
e877b9208c fix(api): give expected default if field missing (#54807) 2024-05-22 14:43:13 +03:00
Oliver Eyton-Williams
d06bbab6f8 refactor(api): more, smaller tests (#54671) 2024-05-20 11:18:14 -07:00
Oliver Eyton-Williams
ab2f5a3004 refactor(api): simplify schema export (#54722) 2024-05-10 08:53:38 +02:00
Tom
acb38ca4e2 feat(api): add email subscription endpoints to new API (#54000)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2024-05-07 11:31:39 +00:00
Oliver Eyton-Williams
fc6498eddf fix(api): return missing isXCertified (#54627) 2024-05-03 09:25:10 +02:00
Oliver Eyton-Williams
f26a9b9bc0 fix(api): allow empty string for social, not undefined (#54621) 2024-05-03 09:23:47 +02:00
Oliver Eyton-Williams
9c0de67a1e fix(api): allow server to be run from any dir (#54610) 2024-05-02 12:12:09 -07:00
Oliver Eyton-Williams
4b71954dbb fix(api): only import types from ts-reset (#54565) 2024-04-30 09:22:16 +02:00
Oliver Eyton-Williams
84a81c842b fix(api): remove cookie domain in development (#54518) 2024-04-26 08:32:46 -07:00
Ahmad Abdolsaheb
3f9f7e729b feat: restrict card donation for users with little progress (#54529)
Co-authored-by: Naomi <nhcarrigan@gmail.com>
2024-04-26 16:27:50 +03:00
Oliver Eyton-Williams
0b65ec502b fix(api): /charge-stripe-card responses (#54530)
Co-authored-by: Naomi <nhcarrigan@gmail.com>
2024-04-25 12:22:43 -07:00
Oliver Eyton-Williams
28f45b51dd fix(api): consistent responses from certificate/showCert (#54426) 2024-04-25 14:02:59 +02:00
Oliver Eyton-Williams
d60fb06ef1 refactor(api): clean up route code (#54351) 2024-04-15 09:19:44 +02:00
Shaun Hamilton
133f07becd chore(api): refactor schemas into individual files (#54350) 2024-04-11 14:45:56 +02:00
Muhammed Mustafa
086ff36333 feat(api): get certslug route (#50515)
Co-authored-by: Sboonny <muhammed@freecodecamp.org>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2024-04-11 12:27:46 +05:30
Shaun Hamilton
c98e1803a3 fix(api): use port 27017 (#54220) 2024-04-02 17:07:02 -07:00
Tom
be6d26c757 fix(api): add msUsername index to prisma (#54187) 2024-04-02 09:15:01 -07:00
Oliver Eyton-Williams
0f0a2682f0 fix: email authenication link messages (#54152) 2024-04-02 09:23:50 +02:00
Niraj Nandish
f6ae52f6fe fix(api): send msUsername in get session user endpoint (#54050)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2024-03-28 18:14:31 +02:00
Shaun Hamilton
c333a74e77 fix(api): update backend project validation (#54218)
Co-authored-by: Sem Bauke <semboot699@gmail.com>
2024-03-28 10:54:29 +01:00
Oliver Eyton-Williams
8775e9d7a1 fix: double signing test (#54171) 2024-03-26 10:11:34 +01:00
Oliver Eyton-Williams
aacfb281fb feat(api): use jwt_access_token (in development) (#53997)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
2024-03-20 13:47:12 +02:00
Sem Bauke
e8e9f40cc5 feat(api): update my classroom mode (#54009) 2024-03-19 15:42:28 +02:00
Oliver Eyton-Williams
efb8cafb06 chore: copy redirect + tests to new api (#53999)
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2024-03-15 08:21:05 -05:00