Ignore:
Timestamp:
11/05/20 08:53:48 (4 years ago)
Author:
Mile Jankuloski <mile.jankuloski@…>
Branches:
master
Children:
1db5673
Parents:
afc9a9a
Message:

Auth fixes, bug fixes etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/login/login.component.ts

    rafc9a9a rad60966  
    5353      .pipe(finalize(() => (this.busy = false)))
    5454      .subscribe(
    55         () => {
    56           this.router.navigate(['/dashboard']);
     55        (data) => {
     56          if(data.role == 'Admin') {
     57            this.router.navigate(['/admin']);
     58          }
     59          else {
     60            this.router.navigate(['/dashboard']);
     61          }
    5762        },
    5863        () => {
Note: See TracChangeset for help on using the changeset viewer.