Skip to content

Commit

Permalink
Remove "rememberMe" cookie upon load of login page
Browse files Browse the repository at this point in the history
  • Loading branch information
YiranDuan721 committed Jan 14, 2024
1 parent e9e6973 commit dffc4e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/template/login.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
<style>[x-cloak] {
display: none !important;
}</style>

<script>
window.onload = function() {
document.cookie = 'rememberMe=; path=/; max-age=-1';
};
</script>

</head>
<body class="h-screen flex flex-col items-stretch tum-live-bg">
<header class="text-3 flex z-50 w-full items-center px-3 py-2 h-16 justify-between shrink-0 grow-0">
Expand Down

0 comments on commit dffc4e4

Please sign in to comment.