Smart: error on missing token

This commit is contained in:
andig 2022-07-29 09:11:33 +02:00
parent 7bed4edcd7
commit 5a2f8ddffa

View file

@ -115,6 +115,10 @@ func (v *Identity) Login(user, password string) error {
}
}
if err == nil && res.Token == "" && res.Result != "" {
err = fmt.Errorf("missing token: %s", res.Result)
}
var code string
if err == nil {
params := url.Values{