feat: sharepoint webdav (unfinished)

This commit is contained in:
Xhofe
2022-04-04 20:55:22 +08:00
parent b3540cf539
commit 9b6adecd62
4 changed files with 209 additions and 2 deletions

View File

@ -132,7 +132,7 @@ func (driver Cloud189) Login(account *model.Account) error {
}
}
if lt == "" {
return fmt.Errorf("get empty login page")
return errors.New(b)
}
captchaToken := regexp.MustCompile(`captchaToken' value='(.+?)'`).FindStringSubmatch(b)[1]
returnUrl := regexp.MustCompile(`returnUrl = '(.+?)'`).FindStringSubmatch(b)[1]