forked from Nixius/authelia
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
This commit is contained in:
parent
7c9d40f538
commit
d2c8327d8c
|
|
@ -6,7 +6,7 @@
|
|||
<p>Hi {{ .DisplayName }},</p>
|
||||
<p>You requested to set or reset your password for your <a href="https://bc.a250.ca">a250.ca</a> workspace.</p>
|
||||
<p>Click the link below to choose your password. You will also need to enable two-factor authentication or a passkey.</p>
|
||||
<p><a href="https://bc.a250.ca/login/reset-password/step2?token={{ index (split .LinkURL "token=") 1 }}">{{ .LinkText }}</a></p>
|
||||
{{ $parts := splitList "token=" .LinkURL }}<p><a href="https://bc.a250.ca/login/reset-password/step2?token={{ index $parts 1 }}">{{ .LinkText }}</a></p>
|
||||
<p>If you did not request this, you can safely ignore this email — no changes will be made.</p>
|
||||
<p style="color:#888;font-size:0.85em;">Requested from {{ .RemoteIP }}.</p>
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue