Procházet zdrojové kódy

Vendor app mockup UI final

master
kj1352 před 5 roky
rodič
revize
1f2f3f70d2
1 změnil soubory, kde provedl 10 přidání a 9 odebrání
  1. +10
    -9
      src/app/login/login.component.ts

+ 10
- 9
src/app/login/login.component.ts Zobrazit soubor

@@ -24,15 +24,16 @@ export class LoginComponent implements OnInit {
}

requestAuthentication() {
this.authService.authenticateUser(this.credentials).then((data: any) => {
localStorage.vendor_token = data.accessToken;
this.router.navigate(['shop-details']);
}, (err: any) => {
this.errorMessage = err.error.message;
setTimeout(() => {
this.errorMessage = '';
}, 3000);
});
// this.authService.authenticateUser(this.credentials).then((data: any) => {
// localStorage.vendor_token = data.accessToken;
// this.router.navigate(['shop-details']);
// }, (err: any) => {
// this.errorMessage = err.error.message;
// setTimeout(() => {
// this.errorMessage = '';
// }, 3000);
// });
this.router.navigate(['shop-details']);
}

}

Načítá se…
Zrušit
Uložit