Noel Dieschburg 13 年 前
コミット
598fd70e75
1 ファイル変更3 行追加0 行削除
  1. 3 0
      main/inc/local.inc.php

+ 3 - 0
main/inc/local.inc.php

@@ -437,6 +437,9 @@ if (!empty($_SESSION['_user']['user_id']) && ! ($login || $logout)) {
           }
         }
       } //end if is_array($extAuthSource)
+      if ($loginFailed) { //If we are here username given is wrong
+          header('Location: '.api_get_path(WEB_PATH).'index.php?loginFailed=1&error=user_password_incorrect');
+      }
     } //end else login failed
   } elseif (api_get_setting('sso_authentication')==='true' &&  !in_array('webservices', explode('/', $_SERVER['REQUEST_URI']))) {
 		/**