Mercurial > gemma
changeset 516:9b3db1d7a7eb
proxy: improve texts for password reset mails.
* Change mail texts to give extra information about that someone else
could have initiated the reset and that it can be savely ignored.
In addition that you'll get a password mailed back when following
the link
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Mon, 27 Aug 2018 12:44:07 +0200 |
parents | ef7f56d326ae |
children | 7e45aaec7081 |
files | pkg/controllers/pwreset.go |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/controllers/pwreset.go Mon Aug 27 11:56:43 2018 +0200 +++ b/pkg/controllers/pwreset.go Mon Aug 27 12:44:07 2018 +0200 @@ -61,16 +61,19 @@ var ( passwordResetRequestMailTmpl = template.Must( - template.New("request").Parse(`You have requested a password change + template.New("request").Parse(`You or someone else has requested a password change for your account {{ .User }} on {{ .HTTPS }}://{{ .Server }} -Please follow this link to get to the page where you can change your password. +Please follow this link to have a new password generated and mailed to you: {{ .HTTPS }}://{{ .Server }}/api/users/passwordreset/{{ .Hash }} The link is only valid for 12 hours. +If you did not initiate this password reset or do not want to reset the +password, just ignore this email. + Best regards Your service team`))