forked from TrueCloudLab/rclone
vendor: update github.com/t3rm1n4l/go-mega to fix v2 account login
Fixes #2771
This commit is contained in:
parent
bdc638530e
commit
7d5d6c041f
14 changed files with 138 additions and 22 deletions
28
vendor/github.com/t3rm1n4l/go-mega/messages.go
generated
vendored
28
vendor/github.com/t3rm1n4l/go-mega/messages.go
generated
vendored
|
@ -2,16 +2,32 @@ package mega
|
|||
|
||||
import "encoding/json"
|
||||
|
||||
type PreloginMsg struct {
|
||||
Cmd string `json:"a"`
|
||||
User string `json:"user"`
|
||||
}
|
||||
|
||||
type PreloginResp struct {
|
||||
Version int `json:"v"`
|
||||
Salt string `json:"s"`
|
||||
}
|
||||
|
||||
type LoginMsg struct {
|
||||
Cmd string `json:"a"`
|
||||
User string `json:"user"`
|
||||
Handle string `json:"uh"`
|
||||
Cmd string `json:"a"`
|
||||
User string `json:"user"`
|
||||
Handle string `json:"uh"`
|
||||
SessionKey string `json:"sek,omitempty"`
|
||||
Si string `json:"si,omitempty"`
|
||||
Mfa string `json:"mfa,omitempty"`
|
||||
}
|
||||
|
||||
type LoginResp struct {
|
||||
Csid string `json:"csid"`
|
||||
Privk string `json:"privk"`
|
||||
Key string `json:"k"`
|
||||
Csid string `json:"csid"`
|
||||
Privk string `json:"privk"`
|
||||
Key string `json:"k"`
|
||||
Ach int `json:"ach"`
|
||||
SessionKey string `json:"sek"`
|
||||
U string `json:"u"`
|
||||
}
|
||||
|
||||
type UserMsg struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue