qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kw...@apache.org
Subject svn commit: r1706759 - /qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/authorization/sasl.js
Date Mon, 05 Oct 2015 08:08:12 GMT
Author: kwall
Date: Mon Oct  5 08:08:12 2015
New Revision: 1706759

URL: http://svn.apache.org/viewvc?rev=1706759&view=rev
Log:
QPID-6763: Better representation of errors on login screen of WebManagement

Work by Lorenz Quack <quack.lorenz@gmail.com>

Modified:
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/authorization/sasl.js

Modified: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/authorization/sasl.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/authorization/sasl.js?rev=1706759&r1=1706758&r2=1706759&view=diff
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/authorization/sasl.js
(original)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/authorization/sasl.js
Mon Oct  5 08:08:12 2015
@@ -49,11 +49,11 @@ var decodeUTF8 = function decodeUTF8(byt
 
 var errorHandler = function errorHandler(error)
 {
-    if(error.status == 401)
+    if(error.response.status == 401)
     {
         alert("Authentication Failed");
     }
-    else if(error.status == 403)
+    else if(error.response.status == 403)
     {
         alert("Authorization Failed");
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message