This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch activemq-5.16.x
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/activemq-5.16.x by this push:
     new 4ee5537  [AMQ-8046] Add logout button on the WebConsole
4ee5537 is described below

commit 4ee5537896bd4fa112522c317c6c7c0f194254ca
Author: jbonofre <[email protected]>
AuthorDate: Wed Jan 6 08:00:35 2021 +0100

    [AMQ-8046] Add logout button on the WebConsole
    
    (cherry picked from commit 93a180874797f652ccec8656c10c2d77baeb63fe)
---
 .../src/main/webapp/decorators/header.jsp          |  4 ++-
 activemq-web-console/src/main/webapp/logout.jsp    | 40 ++++++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletion(-)

diff --git a/activemq-web-console/src/main/webapp/decorators/header.jsp 
b/activemq-web-console/src/main/webapp/decorators/header.jsp
index 5b10793..99bd1d4 100644
--- a/activemq-web-console/src/main/webapp/decorators/header.jsp
+++ b/activemq-web-console/src/main/webapp/decorators/header.jsp
@@ -62,7 +62,9 @@
                         </div>
                         <div id="site-quicklinks"><P>
                             <a href="http://activemq.apache.org/support.html";
-                               title="Get help and support using Apache 
ActiveMQ">Support</a></p>
+                               title="Get help and support using Apache 
ActiveMQ">Support</a>
+                            &#124;
+                            <a href="logout.jsp" title="Logout">Logout</a></p>
                         </div>
                     </div>
 
diff --git a/activemq-web-console/src/main/webapp/logout.jsp 
b/activemq-web-console/src/main/webapp/logout.jsp
new file mode 100644
index 0000000..e1bd0bf
--- /dev/null
+++ b/activemq-web-console/src/main/webapp/logout.jsp
@@ -0,0 +1,40 @@
+<%--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+--%>
+<%
+response.setStatus(401);
+%>
+<%@include file="WEB-INF/jspf/headertags.jspf" %>
+<html>
+<head>
+<c:set var="pageTitle" value="ActiveMQ Console"/>
+
+<%@include file="decorators/head.jsp" %>
+</head>
+<body>
+
+<%@include file="decorators/header.jsp" %>
+
+<h2>You have been logout</h2>
+
+<p>
+Go back to <a href="<c:url value='/index.jsp'/>">Home</a> to logon again.
+</p>
+
+<%@include file="decorators/footer.jsp" %>
+
+</body>
+</html>
\ No newline at end of file

Reply via email to