function now used cause of private variable
This commit is contained in:
parent
6b0cb128b2
commit
4e5197d4bb
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Reference in a new issue