1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-05 18:32:33 +01:00
Commit Graph

3364 Commits

Author SHA1 Message Date
Puyodead1
878fd9d1e8 Update schemas.json 2023-02-23 21:35:53 -05:00
Puyodead1
292e722f35 update verify email template to add target 2023-02-23 21:35:53 -05:00
Puyodead1
0df1ea22cb Add an email template for email verification 2023-02-23 21:35:52 -05:00
Puyodead1
88d7b89aeb Update package-lock.json 2023-02-23 21:35:52 -05:00
Puyodead1
1f388b17a5 change verify.html title 2023-02-23 21:35:51 -05:00
Puyodead1
a47d80b255 Email verification works
- Added /auth/verify to authenticated route whitelist
- Updated /auth/verify to properly mark a user as verified, return a response, and fix expiration time check
- Implemented /auth/verify/resend
- Moved verification email sending to a helper method
- Fixed VerifyEmailSchema requiring captcha_key
2023-02-23 21:35:51 -05:00
Puyodead1
cc6bf066b1 add missing copyright headers 2023-02-23 21:35:50 -05:00
Madeline
2cddd7a8de Send different app for /verify 2023-02-23 21:35:50 -05:00
Puyodead1
256c7ed8fe send email verification 2023-02-23 21:35:49 -05:00
Puyodead1
ed6c1cbd15 Start implementing smtp 2023-02-23 21:35:49 -05:00
Madeline
eee98516dd Fix gateway encoding Date objects as {} when using erlpack. Fixes NaN/NaN/NaN timestamps in desktop client 2023-02-21 12:01:49 +11:00
Madeline
5f553cc614 Close #954 2023-02-21 11:35:06 +11:00
Madeline
4db83ee531 Fix channel mentions #981 2023-02-20 15:12:23 +11:00
TheArcaneBrony
16f13616d2 Remove channel mentions from messages, in order to fix them in test client.
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2023-02-20 05:09:57 +01:00
Madeline
3dae9d4e59 Implement default avatars #979 2023-02-18 12:57:06 +11:00
Madeline
2b627ab4a4 Update default avatar colour scheme and fix ordering 2023-02-18 12:52:32 +11:00
Puyodead1
1189deaa7c add support for desktop/web 2023-02-17 19:59:12 -05:00
Puyodead1
6fa4f9649f async 2023-02-17 18:10:05 -05:00
Puyodead1
090060d580 Implement default avatars 2023-02-17 18:00:16 -05:00
Madeline
c59af81563 Fix a bug prevent connections using erlpack (#977) 2023-02-16 19:31:36 +11:00
Madeline
cc50ebf47b Fix being unable to unset nicknames
Remove unwanted guild profile handler in cdn
Fix rights check for bio/avatars of your own user
2023-02-05 12:35:27 +11:00
Madeline
e7e3c67a77 Don't use relative path for db entities. Closes #937 2023-02-03 22:45:07 +11:00
Madeline
6d8e6eca9d On db sync/first run, add all the current migrations to migrations table to prevent running them on restarts 2023-02-03 22:39:10 +11:00
Madeline
d899942b1a Merge branch 'master' of github.com:fosscord/fosscord-server 2023-02-03 16:28:12 +11:00
Madeline
9aa31d24ab remove MANAGE_GUILDS, EDIT_FLAGS, SELF_EDIT_FLAGS, MANAGE_GROUPS from default rights 2023-02-03 16:26:50 +11:00
Puyodead1
e290965d00 various fixes for webauthn (#973) 2023-02-03 15:05:54 +11:00
Madeline
74570994c8 run add:license 2023-02-03 14:40:41 +11:00
Madeline
16a5cbac87 Don't allow message types to be edited 2023-02-03 14:39:42 +11:00
Madeline
6e04c92f07 Merge pull request from GHSA-9qvc-84ch-5p2x
* Check permissions and rights

* Prevent editing message type unless MANAGE_MESSAGES right. Also don't send sensitive data in patch response.
2023-02-02 22:26:22 +11:00
Madeline
067d2d8be8 Merge pull request from GHSA-hqqp-gpqw-9w5c 2023-02-02 22:24:56 +11:00
Madeline
cf04de4add Merge pull request from GHSA-9q7f-pv47-cxp9 2023-02-02 22:22:30 +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
Madeline
da20866967 Use erlpack instead of @yukikaze-bot/erlpack (#968) 2023-02-01 13:00:04 +11:00
Madeline
72c0319a9f use print instead of console.log in client cache so it doesn't output weirdness 2023-02-01 12:40:38 +11:00
TheArcaneBrony
352ad14e9a Rename postgresql to postgres -> fix silently failing migrations
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2023-01-31 23:33:07 +01:00
TheArcaneBrony
6b466ab654 Hotfix postgres connection string to not silently fail migrations 2023-01-31 23:27:19 +01:00
TheArcaneBrony
c99deeb69b Fix missing capitalisation in database connected log 2023-01-31 23:15:10 +01:00
TheArcaneBrony
1b6bc94afc Add a tiny bit of extra logging to database connection 2023-01-31 23:13:23 +01:00
Madeline
63b4a8997f Fix missing props in welcome message creation, which causes every client who received the welcome message to disconnect. 2023-02-01 00:12:00 +11:00
Madeline
ae8f4d6752 check pw and other auth before letting users undisable 2023-01-31 15:13:19 +11:00
Madeline
d4d1ab181e subscribe clients to member events when they lazy request members 2023-01-30 20:23:35 +11:00
Madeline
ac51849f28 question mark. 2023-01-30 20:05:07 +11:00
Madeline
1c4cb721be Impl member lazy request (#970) 2023-01-30 19:57:00 +11:00
Madeline
71258f6487 read-states/ack-bulk (#969) 2023-01-30 13:34:27 +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
e98cdfbce0 Merge branch 'master' of github.com:fosscord/fosscord-server 2023-01-26 14:30:34 +11:00
Madeline
ac7a178f88 Fix SIGTERM handler not disconnecting gateway clients and leaving timeouts active 2023-01-26 14:29:33 +11:00
Madeline
8384a2c539 also don't use 3002 as default when gateway endpoints are null 2023-01-26 10:21:13 +11:00
Madeline
1886d53943 Use localhost:3001 as fallback when cdn endpoints are null rather than 3003 2023-01-26 10:18:16 +11:00
Madeline
1dcaa9f5f9 Don't set default cdn endpoints. Null endpoints means to not update them in GLOBAL_ENV. TODO: Don't use private endpoint locations in global env if public is not set, as this limits infra config 2023-01-26 01:10:05 +11:00