]> Untitled Git - lemmy.git/commit
First pass at invite-only migration. (#1949)
authorDessalines <dessalines@users.noreply.github.com>
Wed, 15 Dec 2021 19:49:59 +0000 (14:49 -0500)
committerGitHub <noreply@github.com>
Wed, 15 Dec 2021 19:49:59 +0000 (14:49 -0500)
commitc883a49a4096b171f324d44c9fcacda55ed361ee
tree2e24637aea50bb73617191d358dff55d7d83bada
parent1410c5659ca53feeccfd0ddf1e944984cc601898
First pass at invite-only migration. (#1949)

* First pass at invite-only migration.

* Implement email verification (fixes #219)

* remove unwrap

* Adding views and functionality to registration application. #209

* Add private instance site column, and back end checks.

* Adding some message fields to LoginResponse

* Adding private instance to site setup.

* A few additions:

- Add a DeleteAccount response.
- RegistrationApplicationView now has the safe LocalUserSettings.
- Adding VerifyEmail to websocket API, added a proper response type.

* Adding and reorganizing some email helpers.

* A few fixes for private sites:

- Added a check_registration_application function.
- Only send a verification email if its been changed.
- VerifyEmail now returns LoginResponse.
- Deleting the old tokens after a successful email verify.
- If port is missing on email config, display a better error message.

* Version 0.15.0-rc.3

* Adding published to email_verification table.

* Adding fixes from comments.

* Version 0.15.0-rc.4

* Adding modlog private site check.

* Version 0.15.0-rc.6

Co-authored-by: Felix Ableitner <me@nutomic.com>
59 files changed:
Cargo.lock
Cargo.toml
config/defaults.hjson
crates/api/Cargo.toml
crates/api/src/lib.rs
crates/api/src/local_user.rs
crates/api/src/site.rs
crates/api_common/Cargo.toml
crates/api_common/src/lib.rs
crates/api_common/src/person.rs
crates/api_common/src/site.rs
crates/api_crud/Cargo.toml
crates/api_crud/src/comment/read.rs
crates/api_crud/src/community/read.rs
crates/api_crud/src/post/read.rs
crates/api_crud/src/private_message/create.rs
crates/api_crud/src/site/create.rs
crates/api_crud/src/site/read.rs
crates/api_crud/src/site/update.rs
crates/api_crud/src/user/create.rs
crates/api_crud/src/user/delete.rs
crates/api_crud/src/user/read.rs
crates/apub/Cargo.toml
crates/apub_lib/Cargo.toml
crates/apub_lib_derive/Cargo.toml
crates/db_schema/Cargo.toml
crates/db_schema/src/aggregates/site_aggregates.rs
crates/db_schema/src/impls/email_verification.rs [new file with mode: 0644]
crates/db_schema/src/impls/local_user.rs
crates/db_schema/src/impls/mod.rs
crates/db_schema/src/impls/password_reset_request.rs
crates/db_schema/src/impls/registration_application.rs [new file with mode: 0644]
crates/db_schema/src/newtypes.rs
crates/db_schema/src/schema.rs
crates/db_schema/src/source/email_verification.rs [new file with mode: 0644]
crates/db_schema/src/source/local_user.rs
crates/db_schema/src/source/mod.rs
crates/db_schema/src/source/registration_application.rs [new file with mode: 0644]
crates/db_schema/src/source/site.rs
crates/db_views/Cargo.toml
crates/db_views/src/lib.rs
crates/db_views/src/registration_application_view.rs [new file with mode: 0644]
crates/db_views_actor/Cargo.toml
crates/db_views_moderator/Cargo.toml
crates/routes/Cargo.toml
crates/utils/Cargo.toml
crates/utils/src/email.rs
crates/utils/src/settings/structs.rs
crates/websocket/Cargo.toml
crates/websocket/src/lib.rs
crates/websocket/src/send.rs
migrations/2021-11-23-132840_email_verification/down.sql [new file with mode: 0644]
migrations/2021-11-23-132840_email_verification/up.sql [new file with mode: 0644]
migrations/2021-11-23-153753_add_invite_only_columns/down.sql [new file with mode: 0644]
migrations/2021-11-23-153753_add_invite_only_columns/up.sql [new file with mode: 0644]
migrations/2021-12-09-225529_add_published_to_email_verification/down.sql [new file with mode: 0644]
migrations/2021-12-09-225529_add_published_to_email_verification/up.sql [new file with mode: 0644]
src/api_routes.rs
src/main.rs