From 6c5ccf26b1d480f732ec82a4f7d9c155598dc263 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 17 Aug 2018 20:54:00 +0100 Subject: [PATCH] vendor: update github.com/t3rm1n4l/go-mega to fix failed logins - fixes #2443 --- Gopkg.lock | 2 +- vendor/github.com/t3rm1n4l/go-mega/mega.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Gopkg.lock b/Gopkg.lock index 23c1b29e5..45f49a4da 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -305,7 +305,7 @@ branch = "master" name = "github.com/t3rm1n4l/go-mega" packages = ["."] - revision = "57978a63bd3f91fa7e188b751a7e7e6dd4e33813" + revision = "854bf31d998b151cf5f94529c815bc4c67322949" [[projects]] branch = "master" diff --git a/vendor/github.com/t3rm1n4l/go-mega/mega.go b/vendor/github.com/t3rm1n4l/go-mega/mega.go index 81f992eae..7e8ebf595 100644 --- a/vendor/github.com/t3rm1n4l/go-mega/mega.go +++ b/vendor/github.com/t3rm1n4l/go-mega/mega.go @@ -464,6 +464,8 @@ func (m *Mega) Login(email string, passwd string) error { var err error var result []byte + email = strings.ToLower(email) // mega uses lowercased emails for login purposes + passkey := password_key(passwd) uhandle := stringhash(email, passkey) m.uh = make([]byte, len(uhandle))