remove session from localstorage
This commit is contained in:
parent
524989905c
commit
b516f80175
2 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,6 @@ export class LoginComponent {
|
|||
}
|
||||
|
||||
checkIfUserEmailIsValid(emailValue: string) {
|
||||
const channelNameLenght = emailValue.length;
|
||||
const emailRegex = /^[\w.%+-]+@[\w.-]+\.[a-zA-Z]{2,}$/;
|
||||
if (emailRegex.test(emailValue)) {
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -205,6 +205,7 @@ export class LoginService {
|
|||
|
||||
deleteUserIdInLocalStorage() {
|
||||
localStorage.removeItem('currentUserJOIN');
|
||||
localStorage.removeItem('sessionTimeJOIN');
|
||||
}
|
||||
|
||||
// FORGOT PASSWORD
|
||||
|
|
|
|||
Loading…
Reference in a new issue