Fix: emby login no need pwd

This commit is contained in:
zijiren233 2024-06-16 22:07:22 +08:00
parent 0ea6020215
commit a124bd2a86
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ func (r *LoginReq) Validate() error {
return errors.New("host is invalid")
}
r.Host = strings.TrimRight(url.String(), "/")
if r.Username == "" || r.Password == "" {
return errors.New("username and password is required")
if r.Username == "" {
return errors.New("username is required")
}
return nil
}