Fix bug in login function
Because of changed function signature
This commit is contained in:
parent
5864884f97
commit
bfe52fbbca
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue