From d340ccd5ecbb731c273a07876ad0dfc0a9b33379 Mon Sep 17 00:00:00 2001 From: aurynn_cmd Date: Thu, 15 Nov 2007 23:10:31 +0000 Subject: Significant work on the Entity and Administrative code. It's buggy, so please test, etc. thoroughly. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1869 4979c152-3d1c-0410-bac9-87ea11338e46 --- UI/Admin/main.html | 2 +- UI/get_password.html | 30 ++++++++++++++++++++---------- UI/login.js | 14 +++++++++++++- 3 files changed, 34 insertions(+), 12 deletions(-) (limited to 'UI') diff --git a/UI/Admin/main.html b/UI/Admin/main.html index a7e07c73..adb03840 100644 --- a/UI/Admin/main.html +++ b/UI/Admin/main.html @@ -19,7 +19,7 @@ Date Added - + diff --git a/UI/get_password.html b/UI/get_password.html index 774caea3..43e57eff 100644 --- a/UI/get_password.html +++ b/UI/get_password.html @@ -7,17 +7,27 @@ + - + + @@ -25,13 +35,13 @@ function focus_input(){

-
+ -
+ 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 -- cgit v1.2.3