Frontend: updated logout.

main
Luna 2021-07-25 11:15:00 -07:00
parent d875ce398f
commit c826b6b5db
1 changed files with 9 additions and 9 deletions

View File

@ -20,13 +20,13 @@ async function logout() {
loggedIn() loggedIn()
} }
// // IF THERE IS A TOKEN BUT NO USERNAME LOGOUT // IF THERE IS A TOKEN BUT NO USERNAME LOGOUT
// if (allCookies !== '' && myStorage.length === 0) { if (allCookies !== '' && myStorage.length === 0) {
// logout() logout()
// } }
// // IF THERE IS NO COOKIE BUT A USERNAME GET RID OF USERNAME LOCALLY. // IF THERE IS NO COOKIE BUT A USERNAME GET RID OF USERNAME LOCALLY.
// if (allCookies === '' && myStorage.length !== 0) { if (allCookies === '' && myStorage.length !== 0) {
// localStorage.removeItem('username') localStorage.removeItem('username')
// document.querySelector("#loggeduser").innerHTML = 'You are not logged in' document.querySelector("#loggeduser").innerHTML = 'You are not logged in'
// } }