diff options
author | Maxim Devaev <[email protected]> | 2024-09-22 22:14:36 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-09-23 02:32:23 +0300 |
commit | 5ed368769c889628ebae896556e5c6401cbafdaf (patch) | |
tree | ecaa45df14240683a14308a158761b5ac3cc3139 /web/share/js/login | |
parent | 1217144ecd476e28cfe43d7454a5224aa7fe7b7a (diff) |
refactoring
Diffstat (limited to 'web/share/js/login')
-rw-r--r-- | web/share/js/login/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |