fix (pkg/share): updarte email verification template

This commit is contained in:
MickaelK
2026-10-17 01:39:39 +11:00
parent 1020d3dde3
commit a7868d32cf
2 changed files with 9 additions and 6 deletions
+2
View File
@@ -160,9 +160,11 @@ func ShareVerify(share Share, proof Proof) (Proof, error) {
t.Execute(&b, struct {
Code string
Username string
WhiteLabel bool
}{
code,
user + "[" + Hash(user+env.SECRET_KEY_DERIVATE_FOR_HASH, 10) + "]",
env.IsWhiteLabel(),
})
p.Key = "code"
p.Message = NewString("We've sent you a message with a verification code")
+3 -2
View File
@@ -81,16 +81,17 @@
</td>
</tr>
</table>
{{ if not .WhiteLabel }}
<div class="footer">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="content-block powered-by">
` + WhiteLabelText(`Powered by <a href="https://www.filestash.app">Filestash</a>.`, APPNAME) + `
Powered by <a href="https://www.filestash.app">Filestash</a>.
</td>
</tr>
</table>
</div>
{{ end }}
</div>
</td>
<td>&nbsp;</td>