Mercurial > gemma
changeset 558:b3baa2a98f55
Alway use HTTPs URL for password reset.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 03 Sep 2018 17:47:56 +0200 |
parents | 009171c1485c |
children | f827dc4f3e95 |
files | pkg/controllers/pwreset.go |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/controllers/pwreset.go Mon Sep 03 17:24:50 2018 +0200 +++ b/pkg/controllers/pwreset.go Mon Sep 03 17:47:56 2018 +0200 @@ -158,10 +158,14 @@ } func useHTTPS(req *http.Request) string { - if strings.ToLower(req.URL.Scheme) == "https" { - return "https" - } - return "http" + // always use HTTPS for URLs. + return "https" + /* + if strings.ToLower(req.URL.Scheme) == "https" { + return "https" + } + return "http" + */ } func generateHash() string {