X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=access%2Fpassword_reset.php;h=bdea9136b89b6911fca2ae11d5823a6850a74fde;hb=11109ad9f0e6af3f59d72731a95e473e72fb308b;hp=afa2a1ec01305209d87fa12396c0115ed28c3cf4;hpb=5e63c6ace55729bbb5ee3b060035a25a4426eb0a;p=fa-stable.git diff --git a/access/password_reset.php b/access/password_reset.php index afa2a1ec..bdea9136 100644 --- a/access/password_reset.php +++ b/access/password_reset.php @@ -17,7 +17,7 @@ $js = ""; add_js_file('login.js'); @@ -36,7 +36,7 @@ function defaultCompany() echo "\n"; echo "\n"; echo "$title\n"; - echo "\n"; + echo "\n"; echo " \n"; echo " \n"; send_scripts(); @@ -53,18 +53,17 @@ function defaultCompany() start_table(false, "class='login'"); start_row(); echo ""; - echo "FrontAccounting"; + echo "FrontAccounting"; echo "\n"; end_row(); - echo "\n"; + echo "\n"; table_section_title(_("Version")." $version Build ".$SysPrefs->build_version." - "._("Password reset")); text_row(_("Email"), "email_entry_field", "", 20, 30); - if (isset($_SESSION['wa_current_user']->company)) - $coy = $_SESSION['wa_current_user']->company; - else + $coy = user_company(); + if (!isset($coy)) $coy = $def_coy; if (!@$SysPrefs->text_company_selection) { echo ""._("Company")."\n"; + onclick='set_fullmode();'>\n"; end_form(1); $Ajax->addScript(true, "document.forms[0].password.focus();");