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/shared/services/auth.service.ts

    rafc9a9a rad60966  
    3636        this.http.get<LoginResult>(`${this.apiUrl}/user`).subscribe((x) => {
    3737          this._user.next({
    38             Email: x.head.Email,
    39             Role: x.head.Role,
    40             originalUserName: x.head.originalUserName,
     38            Email: x.username,
    4139            Passwd: x.head.Passwd,
     40            Role: x.role,
     41            originalUserName: x.originalUserName,
    4242            Name: x.head.Name,
    4343            PharmacyMedicines: x.head.PharmacyMedicines,
     
    6464        map((x) => {
    6565          this._user.next({
    66             Email: x.head.Email,
    67             Role: x.head.Role,
    68             originalUserName: x.head.originalUserName,
     66            Email: x.username,
    6967            Passwd: x.head.Passwd,
     68            Role: x.role,
     69            originalUserName: x.originalUserName,
    7070            Name: x.head.Name,
    7171            PharmacyMedicines: x.head.PharmacyMedicines,
     
    105105        map((x) => {
    106106          this._user.next({
    107             Email: x.head.Email,
    108             Role: x.head.Role,
    109             originalUserName: x.head.originalUserName,
     107            Email: x.username,
    110108            Passwd: x.head.Passwd,
     109            Role: x.role,
     110            originalUserName: x.originalUserName,
    111111            Name: x.head.Name,
    112112            PharmacyMedicines: x.head.PharmacyMedicines,
Note: See TracChangeset for help on using the changeset viewer.