From 38c7390dddb5f1f0ee71cf4f31eb2e30a22b445d Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 1 Aug 2015 00:59:44 +0200 Subject: [PATCH 1/2] Fix: On register the username needs to be treated like in login --- register.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/register.go b/register.go index edcd198..ed8cd2c 100644 --- a/register.go +++ b/register.go @@ -4,6 +4,7 @@ import ( "crypto/sha1" "fmt" "net/http" + "strings" "github.com/flosch/pongo2" "github.com/gorilla/sessions" @@ -11,7 +12,7 @@ import ( func registerHandler(res http.ResponseWriter, r *http.Request, session *sessions.Session, ctx *pongo2.Context) (*string, error) { var ( - username = r.FormValue("username") + username = strings.ToLower(r.FormValue("username")) password = r.FormValue("password") passwordCheck = r.FormValue("password_repeat") hashedPassword = fmt.Sprintf("%x", sha1.Sum([]byte(cfg.PasswordSalt+password))) From 8386e4719309e6a5ca9575f96b0f0036e12597d1 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 1 Aug 2015 01:00:20 +0200 Subject: [PATCH 2/2] Prepared release 1.2.2 --- History.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/History.md b/History.md index 083ad15..005aad6 100644 --- a/History.md +++ b/History.md @@ -1,4 +1,10 @@ +1.2.2 / 2015-08-01 +================== + + * Fix: On register the username needs to be treated like in login + * Fixed numbering in README + 1.2.1 / 2015-07-31 ==================