X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=access%2Fpassword_reset.php;h=e9af83f7f8f8239b817ec684df1e1ba0d8abcfd4;hb=96ddfbbb0fe16699cdd474a4b6c253d0fa4ec2da;hp=afa2a1ec01305209d87fa12396c0115ed28c3cf4;hpb=5e63c6ace55729bbb5ee3b060035a25a4426eb0a;p=fa-stable.git diff --git a/access/password_reset.php b/access/password_reset.php index afa2a1ec..e9af83f7 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,35 +53,33 @@ 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 = $def_coy; - if (!@$SysPrefs->text_company_selection) { - echo ""._("Company")."\n"; - echo ""; - } else { -// $coy = $def_coy; - text_row(_("Company"), "company_login_nickname", "", 20, 50); - } - start_row(); - label_cell("Please enter your e-mail", "colspan=2 align='center' id='log_msg'"); - end_row(); + $coy = user_company(); + if (!isset($coy)) + $coy = $def_coy; + if (!@$SysPrefs->text_company_selection) { + echo ""._("Company")."\n"; + echo ""; + } else { + text_row(_("Company"), "company_login_nickname", "", 20, 50); + } + start_row(); + label_cell("Please enter your e-mail", "colspan=2 align='center' id='log_msg'"); + end_row(); end_table(1); echo "
\n"; + onclick='set_fullmode();'>\n"; end_form(1); $Ajax->addScript(true, "document.forms[0].password.focus();");