aboutsummaryrefslogtreecommitdiff
path: root/views/logout/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/logout/index.php')
-rw-r--r--views/logout/index.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/views/logout/index.php b/views/logout/index.php
deleted file mode 100644
index 87878ed..0000000
--- a/views/logout/index.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<h2>Logging you out...</h2>
-
-<script type="text/javascript">
- if (!cookieStorage.getItem('token')) {
- window.location.href = '/';
- }
-
- function deleteToken(response) {
- let request = new XMLHttpRequest();
- request.onreadystatechange = function() {
- if (request.readyState < 4) return;
-
- window.location.href = '/';
- }
- request.open("DELETE", "#", true);
- request.send(null);
-
- cookieStorage.removeItem('token');
- }
- authenticated(deleteToken);
-</script>