Fix bug in login function

Because of changed function signature
This commit is contained in:
Midgard 2022-06-08 17:31:54 +02:00
parent 5864884f97
commit bfe52fbbca
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -81,7 +81,7 @@ class MattermostClient {
throw Error("Already logged in on this server");
}
const response = await this.post("/users/login", undefined, {login_id, password});
const response = await this.post("/users/login", {login_id, password});
const token = response.getResponseHeader("Token");
if (!token) {
throw Error("No Token header in response to log in request");