mirror of
https://github.com/rclone/rclone.git
synced 2025-12-18 17:23:20 +00:00
vendor: update github.com/t3rm1n4l/go-mega to fix v2 account login
Fixes #2771
This commit is contained in:
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 {
|
||||
|
||||
Reference in New Issue
Block a user