X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=access%2Flogin.php;h=b2bad446a0ae408754c1c3f1005c6836b3bb596e;hb=3b06c6c4718610a408cae2e9b76c3134ca30b84c;hp=fbabe47ef317ca7ce1c3efa48e6223fba2df687a;hpb=d90c082fc6dc6c5a5343c7ebc90c76442817523d;p=fa-stable.git diff --git a/access/login.php b/access/login.php index fbabe47e..b2bad446 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"; @@ -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,4 @@ function defaultCompany() echo "

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