tbrehm
2011-04-08 f7a37660cd8da89c9f81f7761d0b13a0e744d10d
interface/web/login/index.php
@@ -152,7 +152,11 @@
                     
                     $app->plugin->raiseEvent('login',$this);
                     
                     echo 'HEADER_REDIRECT:'.$_SESSION['s']['module']['startpage'];
                     /*
                      * We need LOGIN_REDIRECT instead of HEADER_REDIRECT to load the
                      * new theme, if the logged-in user has another
                      */
                     echo 'LOGIN_REDIRECT:'.$_SESSION['s']['module']['startpage'];
                              
                            exit;
                      } else {
@@ -172,11 +176,15 @@
                     //* Incorrect login - Username and password incorrect
                      $error = $app->lng('error_user_password_incorrect');
                      if($app->db->errorMessage != '') $error .= '<br />'.$app->db->errorMessage != '';
                  $app->plugin->raiseEvent('login_failed',$this);
                    }
              }
            } else {
                //* Username or password empty
               if($error == '') $error = $app->lng('error_user_password_empty');
            $app->plugin->raiseEvent('login_empty',$this);
           }
      }
      if($error != ''){