X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=access%2Flogin.php;h=3bbf0060ec37fcab5ebe32d4a7ee4ad04be2267a;hb=ead566f5e20aec8925be69a83803d2de95c26bb8;hp=c60819a90ea3fe5074281e9850fb089963329185;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/access/login.php b/access/login.php index c60819a9..3bbf0060 100644 --- a/access/login.php +++ b/access/login.php @@ -12,21 +12,15 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_to_root'])) die(_("Restricted access")); include_once($path_to_root . "/includes/ui.inc"); - + include_once($path_to_root . "/includes/page/header.inc"); + $js = ""; - $js2 = ""; - + add_js_file('login.js'); // Display demo user name and password within login form if "$allow_demo_mode" is true if ($allow_demo_mode == true) { @@ -52,11 +46,11 @@ function set_fullmode() { echo "$title\n"; echo "\n"; echo " \n"; + send_scripts(); if (!$login_timeout) { echo $js; - } - echo $js2; + } echo "\n"; echo "\n"; @@ -88,7 +82,7 @@ function set_fullmode() { password_row(_("Password:"), 'password', $password); - if ($login_timeout) { + if ($login_timeout) { hidden('company_login_name', $_SESSION["wa_current_user"]->company); } else { if (isset($_SESSION['wa_current_user']->company)) @@ -114,6 +108,8 @@ function set_fullmode() { echo ""; } end_form(1); + $Ajax->addScript(true, "document.forms[0].password.focus();"); + echo "