remove session from localstorage

This commit is contained in:
Chneemann 2024-05-28 05:42:34 +02:00
parent 524989905c
commit b516f80175
2 changed files with 1 additions and 1 deletions

View file

@ -81,7 +81,6 @@ export class LoginComponent {
} }
checkIfUserEmailIsValid(emailValue: string) { checkIfUserEmailIsValid(emailValue: string) {
const channelNameLenght = emailValue.length;
const emailRegex = /^[\w.%+-]+@[\w.-]+\.[a-zA-Z]{2,}$/; const emailRegex = /^[\w.%+-]+@[\w.-]+\.[a-zA-Z]{2,}$/;
if (emailRegex.test(emailValue)) { if (emailRegex.test(emailValue)) {
return true; return true;

View file

@ -205,6 +205,7 @@ export class LoginService {
deleteUserIdInLocalStorage() { deleteUserIdInLocalStorage() {
localStorage.removeItem('currentUserJOIN'); localStorage.removeItem('currentUserJOIN');
localStorage.removeItem('sessionTimeJOIN');
} }
// FORGOT PASSWORD // FORGOT PASSWORD