Smart: error on missing token
This commit is contained in:
parent
7bed4edcd7
commit
5a2f8ddffa
1 changed files with 4 additions and 0 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue