diff options
author | 2016-11-01 15:11:22 +0800 | |
---|---|---|
committer | 2016-11-01 15:11:22 +0800 | |
commit | 39e70a5e493b68d527c3ba404df5b5275e7ac8db (patch) | |
tree | eccfc22d7eb2c014e476ebfed81209c89c91cf6c /openo-portal/portal-common | |
parent | 2d990d100948f46833bd31154d0a206d43aefa9c (diff) |
add the logout page in the portal, but need to framework logout icon add the event listener to call this page.
https://jira.open-o.org/browse/OCS-145
Change-Id: I99f87da7697edec44b3382319b6f4a1be546e7d0
Signed-off-by: zhouruiyu <zhouruiyu@huawei.com>
Diffstat (limited to 'openo-portal/portal-common')
-rw-r--r-- | openo-portal/portal-common/src/main/webapp/common/logout.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/openo-portal/portal-common/src/main/webapp/common/logout.html b/openo-portal/portal-common/src/main/webapp/common/logout.html new file mode 100644 index 00000000..bb3dbc21 --- /dev/null +++ b/openo-portal/portal-common/src/main/webapp/common/logout.html @@ -0,0 +1,39 @@ +<!-- + Copyright 2016 Huawei Technologies Co., Ltd. + + Licensed 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. +--> +<!doctype html> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <script type="text/javascript" src="/openoui/common/thirdparty/jquery/jquery-1.11.2.min.js"></script> +</head> +<body> + <script type="text/javascript"> + $.ajax({ + url: "/openoapi/auth/v1/tokens" + "?=" + new Date().getTime(), + type: "DELETE", + contentType: "application/json", + dataType: "text", + success: function() { + top.window.location = "/openoui/common/login.html"; + }, + error: function() { + top.window.location = "/openoui/common/login.html"; + } + }) + </script> +</body> +</html> |