From 4e5197d4bbfdb80170dc770b8fa18ebafd95b848 Mon Sep 17 00:00:00 2001 From: NyxiumYuuki Date: Tue, 1 Jun 2021 22:36:57 +0200 Subject: [PATCH] function now used cause of private variable --- frontend/src/app/login/login.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/login/login.component.ts b/frontend/src/app/login/login.component.ts index a675c18..a0d0894 100644 --- a/frontend/src/app/login/login.component.ts +++ b/frontend/src/app/login/login.component.ts @@ -24,7 +24,7 @@ export class LoginComponent implements OnInit { // console.log('Password :', this.password); this.auth.sendAuthentication(this.login, this.password).subscribe(data => { this.auth.finalizeAuthentication(data); - if (this.auth.islog) { + if (this.auth.getLogged()) { sessionStorage.setItem('login', this.login); this.router.navigateByUrl('/chat'); } else {