mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2026-09-22 21:03:45 +00:00
WIP: problems with best deals.
This commit is contained in:
@@ -18,7 +18,6 @@ export class SigninComponent implements OnInit {
|
||||
private isSignUpFailed: boolean;
|
||||
private errorMessage: '';
|
||||
|
||||
|
||||
constructor(
|
||||
private formBuilder: FormBuilder,
|
||||
private api: ApiService,
|
||||
@@ -43,10 +42,9 @@ export class SigninComponent implements OnInit {
|
||||
this.api.loginUser(this.loginForm.value.username, this.loginForm.value.password)
|
||||
.subscribe(
|
||||
data => {
|
||||
this.router.navigate(['']);
|
||||
this.isSuccessful = true;
|
||||
this.isSignUpFailed = false;
|
||||
this.api.saveSessionInfoToLocalStorage(data);
|
||||
this.router.navigate(['']);
|
||||
},
|
||||
err => {
|
||||
this.errorMessage = err.error.message;
|
||||
|
||||
Reference in New Issue
Block a user