Skip to content

Commit

Permalink
Merge pull request #93 from CybercentreCanada/hotfix/unused
Browse files Browse the repository at this point in the history
Hotfix/unused
  • Loading branch information
cccs-sgaron authored Jul 14, 2021
2 parents 5f013c7 + 0981c36 commit ff6b667
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/routes/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,6 @@ export default function LoginScreen({ allowUserPass, allowSignup, allowPWReset,
color="primary"
disabled={buttonLoading}
onClick={() => {
const date = new Date();
date.setTime(date.getTime() + 5 * 60 * 1000);
document.cookie = `ui4_path=${process.env.PUBLIC_URL}; expires=${date.toUTCString()}; path=/`;
localStorage.setItem(
'nextLocation',
location.pathname === '/logout'
Expand Down

0 comments on commit ff6b667

Please sign in to comment.