feat: add token expiry and email subject template
This commit is contained in:
parent
b7df357395
commit
4bab09a1cf
|
@ -35,3 +35,6 @@ WELCOME_MESSAGE="Welcome to Authentik"
|
|||
DEFAULT_LANGUAGE=en
|
||||
AUTHENTIK_FOOTER_LINKS='[{"name": "My Organization","href":"https://example.com"}]'
|
||||
COPY_ASSETS="flow_background.jpg|app:/web/dist/assets/images/ icon_left_brand.svg|app:/web/dist/assets/icons/ icon.png|app:/web/dist/assets/icons/"
|
||||
|
||||
EMAIL_SUBJECT="Account Recovery"
|
||||
EMAIL_TOKEN_EXPIRY_MINUTES=30
|
||||
|
|
2
abra.sh
2
abra.sh
|
@ -1,5 +1,5 @@
|
|||
export CUSTOM_CSS_VERSION=v2
|
||||
export CUSTOM_FLOWS_VERSION=v2
|
||||
export CUSTOM_FLOWS_VERSION=v3
|
||||
|
||||
customize() {
|
||||
if [ -z "$1" ]
|
||||
|
|
|
@ -23,6 +23,8 @@ x-env: &env
|
|||
- AUTHENTIK_IMPERSONATION
|
||||
- WELCOME_MESSAGE
|
||||
- DEFAULT_LANGUAGE
|
||||
- EMAIL_SUBJECT
|
||||
- EMAIL_TOKEN_EXPIRY_MINUTES
|
||||
- DOMAIN
|
||||
|
||||
version: '3.8'
|
||||
|
|
|
@ -54,8 +54,8 @@ entries:
|
|||
model: authentik_stages_email.emailstage
|
||||
attrs:
|
||||
use_global_settings: true
|
||||
token_expiry: 30
|
||||
subject: authentik
|
||||
token_expiry: {{ env "EMAIL_TOKEN_EXPIRY_MINUTES" }}
|
||||
subject: "{{ env "EMAIL_SUBJECT" }}"
|
||||
template: email/password_reset.html
|
||||
activate_user_on_success: true
|
||||
- identifiers:
|
||||
|
|
Loading…
Reference in New Issue