summaryrefslogtreecommitdiff
path: root/web/share/js/login
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-04-25 00:18:10 +0300
committerDevaev Maxim <[email protected]>2019-04-25 00:18:10 +0300
commit73bfd715e3d83b777530252ef06e6fad702dd036 (patch)
treecfd9b297a7d8883022c65224e1ca2bd04598f971 /web/share/js/login
parent3d64401b111d863072c74e81e49de68885c0e084 (diff)
refactoring
Diffstat (limited to 'web/share/js/login')
-rw-r--r--web/share/js/login/main.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/share/js/login/main.js b/web/share/js/login/main.js
index 37d05989..bf185bf0 100644
--- a/web/share/js/login/main.js
+++ b/web/share/js/login/main.js
@@ -39,13 +39,13 @@ function main() {
}
function __login() {
- var user = $("user-input").value;
+ let user = $("user-input").value;
if (user.length === 0) {
$("user-input").focus();
} else {
- var passwd = $("passwd-input").value;
- var body = `user=${encodeURIComponent(user)}&passwd=${encodeURIComponent(passwd)}`;
- var http = tools.makeRequest("POST", "/kvmd/auth/login", function() {
+ let passwd = $("passwd-input").value;
+ let body = `user=${encodeURIComponent(user)}&passwd=${encodeURIComponent(passwd)}`;
+ let http = tools.makeRequest("POST", "/kvmd/auth/login", function() {
if (http.readyState === 4) {
if (http.status === 200) {
document.location.href = "/";