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) {
|
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;
|
||||||
|
|
|
||||||
|
|
@ -205,6 +205,7 @@ export class LoginService {
|
||||||
|
|
||||||
deleteUserIdInLocalStorage() {
|
deleteUserIdInLocalStorage() {
|
||||||
localStorage.removeItem('currentUserJOIN');
|
localStorage.removeItem('currentUserJOIN');
|
||||||
|
localStorage.removeItem('sessionTimeJOIN');
|
||||||
}
|
}
|
||||||
|
|
||||||
// FORGOT PASSWORD
|
// FORGOT PASSWORD
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue