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

This commit is contained in:
Nick Craig-Wood 2018-08-17 20:54:00 +01:00
parent 6dc5aa7454
commit 6c5ccf26b1
2 changed files with 3 additions and 1 deletions

2
Gopkg.lock generated
View File

@ -305,7 +305,7 @@
branch = "master" branch = "master"
name = "github.com/t3rm1n4l/go-mega" name = "github.com/t3rm1n4l/go-mega"
packages = ["."] packages = ["."]
revision = "57978a63bd3f91fa7e188b751a7e7e6dd4e33813" revision = "854bf31d998b151cf5f94529c815bc4c67322949"
[[projects]] [[projects]]
branch = "master" branch = "master"

View File

@ -464,6 +464,8 @@ func (m *Mega) Login(email string, passwd string) error {
var err error var err error
var result []byte var result []byte
email = strings.ToLower(email) // mega uses lowercased emails for login purposes
passkey := password_key(passwd) passkey := password_key(passwd)
uhandle := stringhash(email, passkey) uhandle := stringhash(email, passkey)
m.uh = make([]byte, len(uhandle)) m.uh = make([]byte, len(uhandle))