mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 04:06:18 +08:00
fix(cloudreve_v4): remove deprecated authn check for login (#767)
* fix(cloudreve_v4): disable authn check for login * chore(cloudreve_v4): update site login config fields
This commit is contained in:
@ -47,7 +47,13 @@ type BasicConfigResp struct {
|
||||
|
||||
type SiteLoginConfigResp struct {
|
||||
LoginCaptcha bool `json:"login_captcha"`
|
||||
Authn bool `json:"authn"`
|
||||
// RegCaptcha bool `json:"reg_captcha"`
|
||||
// ForgetCaptcha bool `json:"forget_captcha"`
|
||||
// RegisterEnabled bool `json:"register_enabled"`
|
||||
// TosURL string `json:"tos_url"`
|
||||
// PrivacyPolicyURL string `json:"privacy_policy_url"`
|
||||
// SsoDisplayName string `json:"sso_display_name"`
|
||||
// OidcDisplayName string `json:"oidc_display_name"`
|
||||
}
|
||||
|
||||
type PrepareLoginResp struct {
|
||||
|
@ -95,9 +95,6 @@ func (d *CloudreveV4) login() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !siteConfig.Authn {
|
||||
return errors.New("authn not support")
|
||||
}
|
||||
var prepareLogin PrepareLoginResp
|
||||
err = d.request(http.MethodGet, "/session/prepare?email="+d.Addition.Username, nil, &prepareLogin)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user