mirror of
https://github.com/Cccc-owo/CheckInApp.git
synced 2026-06-17 05:56:29 +00:00
feat(auth): require verified email for approval
This commit is contained in:
@@ -13,6 +13,9 @@ from backend.migration_steps.email_notification_settings import (
|
||||
apply as apply_email_notification_settings,
|
||||
)
|
||||
from backend.migration_steps.task_thread_id import apply as apply_task_thread_id
|
||||
from backend.migration_steps.user_email_verification import (
|
||||
apply as apply_user_email_verification,
|
||||
)
|
||||
from backend.models.database import engine as default_engine
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -94,6 +97,11 @@ MIGRATIONS: tuple[Migration, ...] = (
|
||||
description="Add admin-managed email notification settings.",
|
||||
apply=apply_email_notification_settings,
|
||||
),
|
||||
Migration(
|
||||
id="2026050601_add_user_email_verification",
|
||||
description="Add user email verification fields and registration approval policy flags.",
|
||||
apply=apply_user_email_verification,
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user