[sankaku] fix re-authentication (#8779)
Unset the `Authorization` header before performing a re-login
This commit is contained in:
@@ -356,6 +356,7 @@ def _authenticate_impl(extr, username, password):
|
|||||||
extr.log.info("Logging in as %s", username)
|
extr.log.info("Logging in as %s", username)
|
||||||
|
|
||||||
api = extr.api
|
api = extr.api
|
||||||
|
api.headers["Authorization"] = None
|
||||||
url = api.ROOT + "/auth/token"
|
url = api.ROOT + "/auth/token"
|
||||||
data = {"login": username, "password": password}
|
data = {"login": username, "password": password}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user