X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=access%2Flogin.php;h=d3154b5240bb3adcbac6c3a3a367fb3af283a940;hb=0d191c7bff92b9a9bbc44dab48855477edb99ebf;hp=00b74403bfdf3813d29b6cbcb58480a35832d4bf;hpb=14175bfc95a7ffb1303494f7915931c9096a6898;p=fa-stable.git diff --git a/access/login.php b/access/login.php index 00b74403..d3154b52 100644 --- a/access/login.php +++ b/access/login.php @@ -29,6 +29,9 @@ function defaultCompany() else { $demo_text = _("Please login here"); + if (@$allow_password_reset) { + $demo_text .= " "._("or")." "._("request new password").""; + } } if (check_faillog()) @@ -40,6 +43,7 @@ function defaultCompany() document.getElementById('log_msg').innerHTML='$demo_text'}, 1000*$login_delay);"; $demo_text = $blocked_msg; } + flush_dir(user_js_cache()); if (!isset($def_coy)) $def_coy = 0; $def_theme = "default"; @@ -53,10 +57,10 @@ function defaultCompany() echo "\n"; echo "\n"; - echo "$title\n"; + echo "$title\n"; echo "\n"; echo " \n"; - echo " \n"; + echo " \n"; send_scripts(); if (!$login_timeout) { @@ -122,7 +126,11 @@ function defaultCompany() // add all request variables to be resend together with login data if (!in_array($p, array('ui_mode', 'user_name_entry_field', 'password', 'SubmitUser', 'company_login_name'))) - echo ""; + if (!is_array($val)) + echo ""; + else + foreach($val as $i => $v) + echo ""; } end_form(1); $Ajax->addScript(true, "document.forms[0].password.focus();"); @@ -154,4 +162,3 @@ function defaultCompany() echo "

\n"; echo "\n"; -?> \ No newline at end of file