From bfe52fbbca01ad2fdf7b502f7c137a6a67652ea7 Mon Sep 17 00:00:00 2001 From: Midgard Date: Wed, 8 Jun 2022 17:31:54 +0200 Subject: [PATCH] Fix bug in login function Because of changed function signature --- js/mm_client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/mm_client.js b/js/mm_client.js index a1a4200..adfb277 100644 --- a/js/mm_client.js +++ b/js/mm_client.js @@ -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");