Skip to content

Commit 8e46007

Browse files
committed
refactor(drivers/139): harden login credential flow
1 parent 991718a commit 8e46007

3 files changed

Lines changed: 337 additions & 189 deletions

File tree

drivers/139/meta.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77

88
type Addition struct {
99
//Account string `json:"account" required:"true"`
10-
Authorization string `json:"authorization" type:"text" required:"true"`
11-
Username string `json:"username" required:"true"`
12-
Password string `json:"password" required:"true" secret:"true"`
13-
MailCookies string `json:"mail_cookies" required:"true" type:"text" help:"Cookies from mail.139.com used for login authentication."`
10+
Authorization string `json:"authorization" type:"text" help:"Authorization can be used alone. If empty, use mail_cookies alone for fast login, or mail_cookies + username + password for full login fallback."`
11+
Username string `json:"username" help:"Required only when using password login fallback with mail_cookies."`
12+
Password string `json:"password" secret:"true" help:"Required only when using password login fallback with mail_cookies."`
13+
MailCookies string `json:"mail_cookies" type:"text" help:"Cookies from mail.139.com. Can be used alone for fast login, or with username and password for full login fallback."`
1414
driver.RootID
1515
Type string `json:"type" type:"select" options:"personal_new,family,group,personal" default:"personal_new"`
1616
CloudID string `json:"cloud_id"`

0 commit comments

Comments
 (0)