summaryrefslogtreecommitdiff
path: root/UI/login.js
diff options
context:
space:
mode:
Diffstat (limited to 'UI/login.js')
-rw-r--r--UI/login.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/UI/login.js b/UI/login.js
index fd421e26..aa2af97c 100644
--- a/UI/login.js
+++ b/UI/login.js
@@ -11,7 +11,7 @@ function get_http_request_object(){
function submit_form() {
var http = get_http_request_object();
- var username = document.login.login.value;
+ var username = document.login.login.value;
var password = document.login.password.value;
http.open("get", 'login.pl?action=authenticate&company='
+ document.login.company.value, false,
@@ -25,3 +25,15 @@ function submit_form() {
document.location = document.login.action + "?action=login&company="+
documnet.login.company.value;
}
+
+function check_auth() {
+
+ var http = get_http_request_object();
+ var username = "admin";
+ var password = document.login.password.value;
+
+ http.open("get", "login.pl?action=authenticate&company="
+ + document.login.company.value, false,
+ username, password
+ );
+} \ No newline at end of file