function now used cause of private variable

This commit is contained in:
NyxiumYuuki 2021-06-01 22:36:57 +02:00
parent 6b0cb128b2
commit 4e5197d4bb

View file

@ -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 {