mirror of https://github.com/synctv-org/synctv.git
Fix: emby login no need pwd
This commit is contained in:
parent
0ea6020215
commit
a124bd2a86
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue