mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-19 16:14:39 +00:00
fix (pkg/share): updarte email verification template
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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> </td>
|
||||
|
||||
Reference in New Issue
Block a user