X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/38e7a330463acef3f5856985353faba026ecf7f9..c90b4dcd:/bin/mozilla/login.pl diff --git a/bin/mozilla/login.pl b/bin/mozilla/login.pl index 072432aff..4d3679c78 100644 --- a/bin/mozilla/login.pl +++ b/bin/mozilla/login.pl @@ -65,8 +65,8 @@ sub run { %::myconfig = $auth->read_user($form->{login}) if ($form->{login}); $::locale = Locale->new($::myconfig{countrycode}) if $::myconfig{countrycode}; - if (!$::myconfig{login} || (SL::Auth::OK != $auth->authenticate($form->{login}, $form->{password}, 0))) { - $form->{error_message} = $::locale->text('Incorrect Password!'); + if (!$::myconfig{login} || (SL::Auth::OK != $auth->authenticate($form->{login}, $form->{password}))) { + $form->{error_message} = $::locale->text('Incorrect username or password!'); login_screen(); } else { $auth->set_session_value('login', $form->{login}, 'password', $form->{password}); @@ -162,7 +162,8 @@ sub company_logo { $form->{todo_list} = create_todo_list('login_screen' => 1) if (!$form->{no_todo_list}); $form->{stylesheet} = $myconfig{stylesheet}; - $form->{title} = $::locale->text('About'); + $form->{title} = $::locale->text('Lx-Office'); + $form->{interface} = $::dispatcher->interface_type; # create the logo screen $form->header() unless $form->{noheader}; @@ -175,7 +176,7 @@ sub company_logo { sub show_error { my $template = shift; my %myconfig = %main::myconfig; - $myconfig{countrycode} = $main::language; + $myconfig{countrycode} = $::lx_office_conf{system}->{language}; $form->{stylesheet} = 'css/lx-office-erp.css'; $form->header();