Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

vendor: update github.com/t3rm1n4l/go-mega to fix failed logins - fixes #2443

Nick Craig-Wood6c5ccf26b1d4
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))