Puyodead1
97bafa81fc
fix linting errors
2023-02-23 22:40:05 -05:00
Puyodead1
bf55ebc81f
Add mailjet transport
2023-02-23 22:38:02 -05:00
Puyodead1
4383fcd449
Add Mailgun transport
2023-02-23 22:35:07 -05:00
Puyodead1
01103268c3
rename SMTPConfigurations to EmailConfiguration
2023-02-23 21:35:54 -05:00
Puyodead1
689b710c9e
Fix template rendering and use verify email template
...
email html is weird, some stuff isn't supported.
2023-02-23 21:35:54 -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
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
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
9aa31d24ab
remove MANAGE_GUILDS, EDIT_FLAGS, SELF_EDIT_FLAGS, MANAGE_GROUPS from default rights
2023-02-03 16:26:50 +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
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
Madeline
da20866967
Use erlpack instead of @yukikaze-bot/erlpack ( #968 )
2023-02-01 13:00:04 +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
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
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
Madeline
85c880b230
Refactor config utils ( #963 )
2023-01-24 11:09:14 +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
Puyodead1
0c815fde91
fix: route file regex ( #956 )
2023-01-20 01:52:05 +11:00
ChrisChrome
a537df8218
Apparently its still accepted, just depricated
2023-01-18 19:37:15 -07:00
ChrisChrome
6f5d429403
It's seconds, not days
2023-01-18 19:33:30 -07:00
Chris Chrome
fbac5c7cd7
Merge pull request #952 from fosscord/dev/endpoints-in-ping
...
Merge /dev/endpoints-in-ping to master
2023-01-18 12:14:05 -07: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
0af3da6db7
Fix deleting an application if it has a bot
2023-01-17 00:01:14 +11:00
TheArcaneBrony
754d8dbf64
Add basic info in ping
...
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
2023-01-14 19:55:19 +01:00
Erkin Alp Güney
876c15b1a9
Add /users/:id/delete ( #926 )
2023-01-14 19:15:35 +11:00
Madeline
43a0260cd8
Fix guild delete failing when template exists
2023-01-13 22:38:55 +11:00
Madeline
a69c047854
Fix setting user premium_type/etc (non-nullable) to null in db when null in config
2023-01-13 13:44:58 +11:00
TheArcaneBrony
6122374e4d
Dev/post refactor fixes ( #927 )
...
* Re-introduce outgoing message logging
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Websocket dumping
* Sentry user count on API
* Generate session ID upon opening websocket, fix gateway dumps
* Async file io in src/gateway/events/Message.ts
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Async file io in src/util/util/Config.ts
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Make pre-commit hook executable
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Fixed sync file io in src/util/util/Config.ts
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Fixed missing await call in src/util/util/AutoUpdate.ts
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Add comment to src/gateway/events/Connection.ts
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
* Clean up gateway dumping code
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com>
2023-01-12 23:46:36 +11:00
Madeline
68db12378d
fix rights lol
2023-01-11 20:56:11 +11:00
Madeline
b0e2b450af
If defaults_user_premium is false, don't give a user premium_since: new Date
2023-01-11 16:32:16 +11:00
Madeline
8a31d66742
Add sentry close to sigterm handler
2023-01-10 18:31:36 +11:00
Madeline
2f065e6b37
Move sentry init to util. use sentry in each module, not just bundle
2023-01-10 13:20:37 +11:00
Madeline
df449169bd
Prettier
2023-01-05 17:16:55 +11:00
Madeline
e42eaeee8d
Add migrations ( #923 )
...
* Fix typeorm migration cli and server migrations.
* Add `migrate-from-staging` script
2023-01-05 17:04:15 +11:00
Madeline
7a725bab50
Profile themes and pronouns
2022-12-31 17:51:57 +11:00
Madeline
bc086a070c
Allow Bearer tokens through, like Bot
2022-12-31 14:52:58 +11:00
Madeline
8aa355dee7
Move datasource to own file for typeorm cli
2022-12-27 15:23:56 +11:00