Skip to content

Commit

Permalink
Fixed signout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mulletfingers999 committed Apr 14, 2015
1 parent 0f35b08 commit c56ad96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/signin/signin.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ function getParameterByName(name) {
auth.logout();
Cookies.clear('email',{path : '/'});
Cookies.clear('name',{path : '/'});
Cookies.clear('uid',{path : '/'});
alert("You have been successfully signed out.");
var uri = window.location.toString();

Expand Down
11 changes: 8 additions & 3 deletions signin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
</head>
<body>
<!--Temporary Redirect Script-->
<script>
window.location.replace('../docs/signin/signin.php');
</script>
<?php
if ($_GET['mode'] != 'out') {
echo "<script>window.location.replace('../docs/signin/signin.php');</script>";
} else {
echo "<script>window.location.replace('../docs/signin/signin.php?mode=out');</script>";
}
?>
<!--Remove that ^^^, later-->
</body>
</html>

0 comments on commit c56ad96

Please sign in to comment.