56 Commits

Author SHA1 Message Date
Madeline
2cf3833499
remove INVALID_PASSWORD error response. close #1090 2023-08-13 15:18:42 +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
Madeline
c0614b18c3
fix min password length check 2023-08-12 00:20:36 +10:00
Puyodead1
033e2108e7
Fix some linting warnings 2023-08-06 22:51:34 -04:00
Madeline
f1f68c3d31
refactor checkToken 2023-07-28 09:26:18 +10:00
ngn
e774a9256b made it prettier 2023-06-11 15:17:03 +03:00
ngn
41f14b3ad8 Make sure min password length is not null 2023-06-11 13:36:51 +03:00
ngn
3dcabc57f6 Making the error message dynamic 2023-06-10 22:17:50 +03:00
ngn13
9efe160340
making min password length configurable
Co-authored-by: Puyodead1 <puyodead@proton.me>
2023-06-10 22:13:44 +03:00
ngn
f006ddc735 Implemented password length check 2023-06-10 20:51:21 +03:00
Puyodead1
4824e14661
oapi: fix a few response types in auth 2023-04-13 15:41:49 -04:00
Puyodead1
e68819d97a
oapi: add missing 2fa types to login 2023-04-13 15:41:49 -04:00
Puyodead1
860b9d583e
oapi: finish users 2023-04-13 15:39:31 -04:00
Puyodead1
787de50140
backfill missing query params 2023-04-13 15:24:37 -04:00
Puyodead1
6b3a3b750f
fixing lots of openapi crap 2023-04-13 15:20:10 -04:00
Puyodead1
a567ca3f51
auth routes 2023-04-13 14:58:53 -04:00
Madeline
095cbf7b20
Remove ALL fosscord mentions 2023-03-31 15:52:33 +11:00
Madeline
8b2faf0b18
SPACEBAR 2023-03-31 02:15:42 +11:00
Madeline
64e747a4d2
SPACEBAR 2023-03-31 02:05:02 +11:00
Puyodead1
002480df9d
fix totp using wrong settings key 2023-03-21 22:32:55 -04:00
Madeline
4d06b86d7b
Fix UserSettings relation being in select rather than relations 2023-03-16 11:31:24 +11:00
Madeline
deb0da524e Rename password_reset config to passwordReset as it messes with config key generation 2023-02-25 20:31:10 +11:00
Madeline
048459b75f Merge branch 'master' of github.com:fosscord/fosscord-server 2023-02-24 23:49:07 +11:00
Madeline
51fe1b8955 send required_action in gateway for when email verification is required 2023-02-24 23:46:52 +11:00
Puyodead1
a22cdaaac6 fix a few issues with emails 2023-02-24 07:45:29 -05:00
Puyodead1
91e9d60040 first batch of requested changes 2023-02-24 06:52:01 -05:00
Puyodead1
ed38d74b3e don't return token on register if verification required 2023-02-24 06:36:57 -05:00
Puyodead1
05453ec148 implement password reset 2023-02-24 01:54:10 -05:00
Puyodead1
a78e13073f don't print anything if email send is successful 2023-02-24 00:10:50 -05:00
Puyodead1
ada821070b add right to resend verification emails 2023-02-23 22:52:24 -05:00
Puyodead1
1aba7d591c fix: email verification 2023-02-23 22:49:55 -05:00
Puyodead1
54dbc7190b fix: verification required for login not working correctly 2023-02-23 22:49:55 -05:00
Puyodead1
34cde14f75 config: require account verification 2023-02-23 22:40:05 -05:00
Puyodead1
97bafa81fc fix linting errors 2023-02-23 22:40:05 -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
e290965d00 various fixes for webauthn (#973) 2023-02-03 15:05:54 +11:00
Madeline
ae8f4d6752 check pw and other auth before letting users undisable 2023-01-31 15:13:19 +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
d151283b08 Add back include_url param to reg tokens 2023-01-10 18:08:31 +11:00
Madeline
df449169bd Prettier 2023-01-05 17:16:55 +11:00
Madeline
7453dd0119 Use adjusted email in /auth/login 2023-01-02 13:18:07 +11:00
Madeline
1bee8dc48f Revert "Don't let users undisable their accounts"
This reverts commit cd84412c92c447826ebb2668295d46956618d962.
2023-01-01 14:20:41 +11:00
Madeline
cd84412c92 Don't let users undisable their accounts 2023-01-01 12:59:45 +11:00
Madeline
e6ae9d32e8 Reg tokens bypass other restrictions 2022-12-19 22:23:31 +11:00
Madeline
ddd3c86043 Registration tokens 2022-12-19 22:04:52 +11:00