aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/login/login.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/components/login/login.component.ts')
-rw-r--r--src/app/components/login/login.component.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app/components/login/login.component.ts b/src/app/components/login/login.component.ts
index c3fb79c..f64848c 100644
--- a/src/app/components/login/login.component.ts
+++ b/src/app/components/login/login.component.ts
@@ -34,15 +34,15 @@ export class LoginComponent implements OnInit {
onSubmit(): void {
this._errorBar.hideError();
- this._userService.loginUserRequest(this.loginUserFormGroup).subscribe(
- (res: object) => {
+ this._userService.loginUserRequest(this.loginUserFormGroup).subscribe({
+ next: (res: object) => {
this._tokenService.setUserTokenToSessionStorage(res);
this._router.navigate(['/']);
},
- (err: HttpErrorResponse) => {
+ error: (err: HttpErrorResponse) => {
this._errorBar.showError(err);
}
- );
+ });
}
onRedirectRegister(): void {