EmailTemplates (email/models.py)

authentik · authentik/stages/email/models.py · python · MIT
email, tag:knn-classified

Defines email templates and stage for sending user emails in Authentik.

# Source: https://github.com/goauthentik/authentik | License: MIT | Copyright 2023 Jens Langhammer
# Provided via justclaw.it.com; keep this notice with the code.
"""email stage models"""

from os import R_OK, access
from pathlib import Path

from django.conf import settings
from django.core.mail.backends.base import BaseEmailBackend
from django.core.mail.backends.smtp import EmailBackend
from django.db import models
from django.utils.translation import gettext as _
from django.views import View
from rest_framework.serializers import BaseSerializer
from structlog.stdlib import get_logger

from authentik.flows.models import Stage
from authentik.lib.config import CONFIG
from authentik.lib.utils.time import timedelta_string_validator

EMAIL_RECOVERY_MAX_ATTEMPTS = 5

LOGGER = get_logger()


c

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key