Mercurial > gemma
comparison pkg/controllers/pwreset.go @ 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 | b96b1b258cfa |
children | 139214cecc8f |
comparison
equal
deleted
inserted
replaced
515:ef7f56d326ae | 516:9b3db1d7a7eb |
---|---|
59 | 59 |
60 const pwResetRole = "sys_admin" | 60 const pwResetRole = "sys_admin" |
61 | 61 |
62 var ( | 62 var ( |
63 passwordResetRequestMailTmpl = template.Must( | 63 passwordResetRequestMailTmpl = template.Must( |
64 template.New("request").Parse(`You have requested a password change | 64 template.New("request").Parse(`You or someone else has requested a password change |
65 for your account {{ .User }} on | 65 for your account {{ .User }} on |
66 {{ .HTTPS }}://{{ .Server }} | 66 {{ .HTTPS }}://{{ .Server }} |
67 | 67 |
68 Please follow this link to get to the page where you can change your password. | 68 Please follow this link to have a new password generated and mailed to you: |
69 | 69 |
70 {{ .HTTPS }}://{{ .Server }}/api/users/passwordreset/{{ .Hash }} | 70 {{ .HTTPS }}://{{ .Server }}/api/users/passwordreset/{{ .Hash }} |
71 | 71 |
72 The link is only valid for 12 hours. | 72 The link is only valid for 12 hours. |
73 | |
74 If you did not initiate this password reset or do not want to reset the | |
75 password, just ignore this email. | |
73 | 76 |
74 Best regards | 77 Best regards |
75 Your service team`)) | 78 Your service team`)) |
76 | 79 |
77 passwordResetMailTmpl = template.Must( | 80 passwordResetMailTmpl = template.Must( |