From 5ed368769c889628ebae896556e5c6401cbafdaf Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 22 Sep 2024 22:14:36 +0300 Subject: refactoring --- web/share/js/login/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/share/js/login') diff --git a/web/share/js/login/main.js b/web/share/js/login/main.js index 4ffa276a..58e7c80d 100644 --- a/web/share/js/login/main.js +++ b/web/share/js/login/main.js @@ -51,7 +51,7 @@ function __login() { } else { let passwd = $("passwd-input").value + $("code-input").value; let body = `user=${encodeURIComponent(user)}&passwd=${encodeURIComponent(passwd)}`; - tools.httpPost("/api/auth/login", function(http) { + tools.httpPost("/api/auth/login", null, function(http) { if (http.status === 200) { document.location.href = "/"; } else if (http.status === 403) { -- cgit v1.2.3