Add password reset (#3)
This commit is contained in:
5
templates/mail/mail-footer.tmpl
Normal file
5
templates/mail/mail-footer.tmpl
Normal file
@ -0,0 +1,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
12
templates/mail/mail-header.tmpl
Normal file
12
templates/mail/mail-header.tmpl
Normal file
@ -0,0 +1,12 @@
|
||||
<!doctype html>
|
||||
<html style="width: 100%; height: 100%; padding: 0; margin: 0;">
|
||||
<head>
|
||||
<meta name="viewport" content="width: display-width;">
|
||||
</head>
|
||||
<body style="width: 100%; padding: 0; margin: 0; background: #fbfbfb">
|
||||
<div style="width: 100%; font-family: 'Open Sans', sans-serif; text-rendering: optimizeLegibility">
|
||||
<div style="width: 600px; margin: 0 auto; text-align: justify;">
|
||||
<h1 style="font-size: 30px; text-align: center;">
|
||||
<img src="{{.FrontendURL}}images/logo-full.svg" style="height: 75px;" alt="Vikunja"/>
|
||||
</h1>
|
||||
<div style="border: 1px solid #ccc; box-shadow: 1px 1px 5px #eeeeee; padding: 5px 25px; border-radius: 3px; background: #fff;">
|
9
templates/mail/password-changed.html.tmpl
Normal file
9
templates/mail/password-changed.html.tmpl
Normal file
@ -0,0 +1,9 @@
|
||||
{{template "mail-header.tmpl" .}}
|
||||
<p>
|
||||
Hi {{.User.Username}},<br/>
|
||||
<br/>
|
||||
Your account password was successfully changed.
|
||||
<br/>
|
||||
If this wasn't you, it could mean someone compromised your account. In this case contact your server's administrator.
|
||||
</p>
|
||||
{{template "mail-footer.tmpl"}}
|
5
templates/mail/password-changed.plain.tmpl
Normal file
5
templates/mail/password-changed.plain.tmpl
Normal file
@ -0,0 +1,5 @@
|
||||
Hi {{.User.Username}},
|
||||
|
||||
Your account password was successfully changed.
|
||||
|
||||
If this wasn't you, it could mean someone compromised your account. In this case contact your server's administrator.
|
14
templates/mail/reset-password.html.tmpl
Normal file
14
templates/mail/reset-password.html.tmpl
Normal file
@ -0,0 +1,14 @@
|
||||
{{template "mail-header.tmpl" .}}
|
||||
<p>
|
||||
Hi {{.User.Username}},<br>
|
||||
<br>
|
||||
To reset your password, click the link below:
|
||||
</p>
|
||||
<a href="{{.FrontendURL}}?userPasswordReset={{.User.PasswordResetToken}}" title="Reset your password" style="background: rgb(20, 131, 175); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; border: 1px solid rgb(16, 106, 140); border-bottom-width: 3px; color: rgb(255, 255, 255); font-weight: 700; font-size: 13px; margin: 10px auto; padding: 5px 10px; text-decoration: none; text-align: center; text-rendering: optimizelegibility; text-transform: uppercase; display: block; width: 200px;">
|
||||
Reset your password
|
||||
</a>
|
||||
<p>
|
||||
If the button above doesn't work, copy the url below and paste it in your browsers address bar:<br/>
|
||||
{{.FrontendURL}}?userPasswordReset={{.User.PasswordResetToken}}
|
||||
</p>
|
||||
{{template "mail-footer.tmpl"}}
|
3
templates/mail/reset-password.plain.tmpl
Normal file
3
templates/mail/reset-password.plain.tmpl
Normal file
@ -0,0 +1,3 @@
|
||||
Hi {{.User.Username}},
|
||||
|
||||
Use the following link to reset your password: {{.FrontendURL}}?userPasswordReset={{.User.PasswordResetToken}}
|
Reference in New Issue
Block a user