forked from Nixius/authelia
Fix reset URL: replace %2Flogin encoding in .LinkURL
Authelia URL-encodes the /login path in authelia_url when building the JWT reset link, producing bc.a250.ca%2Flogin instead of bc.a250.ca/login. Single replace fixes it without any other mangling. Made-with: Cursor
This commit is contained in:
parent
e3b9511487
commit
0851d6f952
|
|
@ -6,7 +6,7 @@
|
||||||
<p>Hi {{ .DisplayName }},</p>
|
<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>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>Click the link below to choose your password. You will also need to enable two-factor authentication or a passkey.</p>
|
||||||
<p><a href="{{ .LinkURL }}">{{ .LinkText }}</a></p>
|
<p><a href="{{ replace "%2Flogin" "/login" .LinkURL }}">{{ .LinkText }}</a></p>
|
||||||
<p>If you did not request this, you can safely ignore this email — no changes will be made.</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>
|
<p style="color:#888;font-size:0.85em;">Requested from {{ .RemoteIP }}.</p>
|
||||||
</body>
|
</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.
|
Use the link below to choose your password. You will also need to enable two-factor authentication or a passkey.
|
||||||
|
|
||||||
{{ .LinkURL }}
|
{{ replace "%2Flogin" "/login" .LinkURL }}
|
||||||
|
|
||||||
If you did not request this, you can safely ignore this email — no changes will be made.
|
If you did not request this, you can safely ignore this email — no changes will be made.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue