From d2c8327d8c2d2100e0a63ad65e76a4df674d6892 Mon Sep 17 00:00:00 2001 From: Leopere Date: Wed, 4 Mar 2026 18:25:24 -0500 Subject: [PATCH] Fix template: use splitList (returns slice) instead of split (returns map) split returns {_0: ..., _1: ...} map, index needs string key. splitList returns a proper slice that works with index 1. Made-with: Cursor --- .../config/email_templates/IdentityVerificationJWT.html | 2 +- .../authelia/config/email_templates/IdentityVerificationJWT.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/authelia/config/email_templates/IdentityVerificationJWT.html b/docker/authelia/config/email_templates/IdentityVerificationJWT.html index 71ed96d..91c2a68 100644 --- a/docker/authelia/config/email_templates/IdentityVerificationJWT.html +++ b/docker/authelia/config/email_templates/IdentityVerificationJWT.html @@ -6,7 +6,7 @@

Hi {{ .DisplayName }},

You requested to set or reset your password for your a250.ca workspace.

Click the link below to choose your password. You will also need to enable two-factor authentication or a passkey.

-

{{ .LinkText }}

+{{ $parts := splitList "token=" .LinkURL }}

{{ .LinkText }}

If you did not request this, you can safely ignore this email — no changes will be made.

Requested from {{ .RemoteIP }}.

diff --git a/docker/authelia/config/email_templates/IdentityVerificationJWT.txt b/docker/authelia/config/email_templates/IdentityVerificationJWT.txt index 9683329..8fe147b 100644 --- a/docker/authelia/config/email_templates/IdentityVerificationJWT.txt +++ b/docker/authelia/config/email_templates/IdentityVerificationJWT.txt @@ -6,7 +6,7 @@ You requested to set or reset your password for your a250.ca workspace (https:// Use the link below to choose your password. You will also need to enable two-factor authentication or a passkey. -https://bc.a250.ca/login/reset-password/step2?token={{ index (split .LinkURL "token=") 1 }} +{{ $parts := splitList "token=" .LinkURL }}https://bc.a250.ca/login/reset-password/step2?token={{ index $parts 1 }} If you did not request this, you can safely ignore this email — no changes will be made.