Fixes issue 35326: Support basic authentication
authorMartin Taal <martin.taal@openbravo.com>
Tue, 21 Feb 2017 13:48:41 +0100
changeset 31537 d4ce87bb216b
parent 31536 24eba52754e3
child 31538 517b0f4d5a47
Fixes issue 35326: Support basic authentication
Return 401 status code when authentication fails
src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
--- a/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java	Tue Feb 21 13:39:12 2017 +0100
+++ b/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java	Tue Feb 21 13:48:41 2017 +0100
@@ -215,6 +215,7 @@
 
       if (strUserAuth == null) {
         // auth-manager return null after redirecting to the login page -> stop request-processing
+        response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
         return;
       }