Logout any existing sessions

This commit is contained in:
fluepke 2021-03-20 20:08:47 +01:00
parent 547172a8e3
commit ee0ce195ec
No known key found for this signature in database
GPG key ID: 37E30BD2FBE7746A

View file

@ -340,7 +340,7 @@ func makeTimestamp() int64 {
}
func (v *VodafoneStation) getLoginSalts() (*LoginResponseSalts, error) {
responseBody, err := v.doRequest("POST", v.URL+"/api/v1/session/login", "username=admin&password=seeksalthash")
responseBody, err := v.doRequest("POST", v.URL+"/api/v1/session/login", "username=admin&password=seeksalthash&logout=true")
if err != nil {
return nil, err
}