Commit Graph

51 Commits

Author SHA1 Message Date
MathMan05 76857bdcfb Check for old password when setting new
Checks for password
2025-07-02 09:21:24 +10:00
MathMan05 90287748ce Update index.ts 2025-03-23 13:13:03 -05:00
MathMan05 109bf0da7c fix minor bug 2025-03-22 23:03:33 -05:00
TomatoCake 95bbccb6f7 Same error message if username too long 2024-08-17 18:24:38 +02:00
TomatoCake 475aee372b Send 204 status 2024-08-15 10:14:44 +02:00
TomatoCake 20b2843680 Make profile bio max length configurable 2024-08-10 22:10:20 +02:00
Cyber f047f93b77 fix: check for password only if username is present in body 2024-07-28 20:48:06 +10:00
Cyber b682f170b9 fix: return an error on username change with no password 2024-07-28 20:48:06 +10:00
Madeline d18584f8e9 Refactor email sending + remove email verification if mail sending is not set up 2023-08-12 15:36:29 +10:00
Puyodead1 5c8359ec45 Fix connection class imports 2023-08-06 22:56:13 -04:00
Puyodead1 866eb15d90 clusterfuck 2023-04-13 15:44:39 -04:00
Puyodead1 860b9d583e oapi: finish users 2023-04-13 15:39:31 -04:00
Puyodead1 1ce7879ee8 oapi: users progress 2023-04-13 15:38:52 -04:00
Puyodead1 6b3a3b750f fixing lots of openapi crap 2023-04-13 15:20:10 -04:00
Madeline 844f1de6aa License information 2023-04-02 11:32:40 +10:00
Madeline d90fd6b4e5 Update connection metadata visibility 2023-04-02 11:15:08 +10:00
Madeline 218f71b82c Merge branch 'master' into refactor/dev/connections 2023-04-02 10:55:17 +10:00
Madeline 095cbf7b20 Remove ALL fosscord mentions 2023-03-31 15:52:33 +11:00
Madeline 698ad90d3e Revert "Merge pull request #1008 from spacebarchat/dev/samuel"
This reverts commit 69ea71aa9e, reversing
changes made to 8b2faf0b18.
2023-03-31 15:26:15 +11:00
Samuel (Flam3rboy) 69ea71aa9e Merge pull request #1008 from spacebarchat/dev/samuel 2023-03-30 18:13:34 +02:00
Madeline 8b2faf0b18 SPACEBAR 2023-03-31 02:15:42 +11:00
Madeline 64e747a4d2 SPACEBAR 2023-03-31 02:05:02 +11:00
Madeline c7277efbad Move redirect uri generation to getRedirectUri function of Connection class.
Use api_endpointPublic instead of cdn_endpointPublic
2023-03-18 19:33:32 -04:00
Puyodead1 7e10d73dac use connection revoked error 2023-03-18 19:28:45 -04:00
Puyodead1 6d6944cfee Add Twitch, error handling, revokation changes, etc 2023-03-18 19:28:45 -04:00
Madeline a60f147156 Fix connection update visibilty dying when given boolean 2023-03-18 19:27:40 -04:00
Puyodead1 02a4a6998d Update todo in access-token route 2023-03-18 19:27:40 -04:00
Puyodead1 0db1fa5f0b Refreshable connections, refactoring, access-token endpoint
- Aded /users/@me/connections/:connection_name/:connection_id/access-token
- Replaced `access_token` property on ConnectedAccount with `token_data` object for refreshing tokens
- Made a common interface for connection things like ComonOAuthTokenResponse
- Added `RefreshableConnection` class
- Added token refresh to Spotify connection (disabled)
2023-03-18 19:27:39 -04:00
Madeline 2bae842926 Delete connections 2023-03-18 19:26:15 -04:00
Madeline 5491c58ffc Don't use mergeDeep 2023-03-18 19:23:57 -04:00
Puyodead1 5c682137b2 implement PATCH connection 2023-03-18 19:16:41 -04:00
Puyodead1 21bfda32e4 add connections 2023-03-18 19:09:51 -04:00
Samuel 7b00e99053 fix: use entity.save() instead of insert (needed for caching) 2023-03-18 04:13:04 +01:00
Madeline 4d06b86d7b Fix UserSettings relation being in select rather than relations 2023-03-16 11:31:24 +11:00
Puyodead1 e290965d00 various fixes for webauthn (#973) 2023-02-03 15:05:54 +11:00
Madeline 067d2d8be8 Merge pull request from GHSA-hqqp-gpqw-9w5c 2023-02-02 22:24:56 +11:00
Madeline af6b5a6594 Merge pull request from GHSA-r7h4-76f7-6264
* Actually use maxUsername config value.

* Change maxUsername default to discord.com default
2023-02-02 22:15:03 +11:00
Puyodead1 709dc7280e Implement WebAuthn (#967)
* implement webauthn

* code review

---------

Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
2023-01-30 13:30:42 +11:00
Madeline 084dc0be08 Add ESLint (#941)
* Add eslint, switch to lint-staged for precommit

* Fix all ESLint errors

* Update GH workflow to check prettier and eslint
2023-01-20 18:10:47 +11:00
Madeline 0e7f127ece Script to add license preamble to each file. Also, does that. (#935)
* Add script to automatically add license to each file

* Add license preamble to each file.

* Fix existing preamble detection breaking due to line endings. Git :(

* Prevent license from being added to code with other licenses
2023-01-18 13:05:49 +11:00
Madeline df449169bd Prettier 2023-01-05 17:16:55 +11:00
TheArcaneBrony 803ab38fad Move UserSettings to own entity 2022-12-19 17:52:44 +11:00
ChrisChrome cdb500e8e6 Invalidate tokens on password change 2022-12-18 23:51:42 +11:00
Madeline ec6666edee Remove Slowcord demo user restrictions 2022-12-17 17:32:10 +11:00
Madeline 00e3606f7c Fix user settings not saving properly and guild folders 2022-10-28 19:23:02 +11:00
Madeline c00c70985c fix bad user validation 2022-10-27 23:12:48 +11:00
Madeline 138cad6b8d Fix user guild settings 2022-09-28 16:39:26 +10:00
Madeline 7818e8dd3c Missed some schemas 2022-09-28 16:39:05 +10:00
Madeline 99ee7e9400 Prettier 2022-09-26 22:41:21 +10:00
Madeline 849b257db7 Move schemas to /src/util/schemas 2022-09-26 22:08:14 +10:00