Skip to content

Commit

Permalink
fix front
Browse files Browse the repository at this point in the history
  • Loading branch information
Donz2020 committed Apr 24, 2021
1 parent 220f024 commit 2f5a4c8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ export class TokenStorageService {
return window.sessionStorage.getItem(TOKEN_KEY);
}

public saveUser(user) {
window.sessionStorage.removeItem(USER_KEY);
window.sessionStorage.setItem(USER_KEY, JSON.stringify(user));
window.sessionStorage.removeItem(USER_KEY);
}

public getUser(): string {
return window.sessionStorage.getItem(TOKEN_KEY);
}
Expand Down
1 change: 0 additions & 1 deletion frontend/JustmeetFrontend/src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export class LoginComponent implements OnInit {
this.authService.login(this.form).subscribe(
data => {
this.tokenStorage.saveToken(data.accessToken);
this.tokenStorage.saveUser(data);

this.isLoginFailed = false;
this.isLoggedIn = true;
Expand Down

This file was deleted.

0 comments on commit 2f5a4c8

Please sign in to comment.