Changeset d23bf72 for Farmatiko/ClientApp
- Timestamp:
- 11/05/20 06:57:35 (4 years ago)
- Branches:
- master
- Children:
- afc9a9a
- Parents:
- 1f4846d
- Location:
- Farmatiko/ClientApp/src
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/login/login.component.html
r1f4846d rd23bf72 6 6 <div class="example-container"> 7 7 <mat-form-field> 8 <input matInput placeholder="Email" [(ngModel)]="this.username" formControlName=" email">8 <input matInput placeholder="Email" [(ngModel)]="this.username" formControlName="username"> 9 9 </mat-form-field> 10 10 -
Farmatiko/ClientApp/src/app/shared/interfaces.ts
r1f4846d rd23bf72 55 55 Passwd: string; 56 56 Name: string; 57 originalUserName?: string; 57 58 Role?: string; 58 59 } -
Farmatiko/ClientApp/src/app/shared/services/auth.service.ts
r1f4846d rd23bf72 11 11 username: string; 12 12 role: string; 13 originalUserName?: string; 13 14 accessToken: string; 14 15 refreshToken: string; 15 head : IPharmacyHead;16 head?: IPharmacyHead; 16 17 } 17 18 … … 35 36 this.http.get<LoginResult>(`${this.apiUrl}/user`).subscribe((x) => { 36 37 this._user.next({ 37 Email: x.username, 38 Role: x.role, 38 Email: x.head.Email, 39 Role: x.head.Role, 40 originalUserName: x.head.originalUserName, 39 41 Passwd: x.head.Passwd, 40 Name: x.head.Name 42 Name: x.head.Name, 43 PharmacyMedicines: x.head.PharmacyMedicines, 44 Pharmacy: x.head.Pharmacy 41 45 }); 42 46 }); … … 60 64 map((x) => { 61 65 this._user.next({ 62 Email: x.username, 63 Role: x.role, 66 Email: x.head.Email, 67 Role: x.head.Role, 68 originalUserName: x.head.originalUserName, 64 69 Passwd: x.head.Passwd, 65 Name: x.head.Name 70 Name: x.head.Name, 71 PharmacyMedicines: x.head.PharmacyMedicines, 72 Pharmacy: x.head.Pharmacy 66 73 }); 67 74 this.setLocalStorage(x); … … 98 105 map((x) => { 99 106 this._user.next({ 100 Email: x.username, 101 Role: x.role, 107 Email: x.head.Email, 108 Role: x.head.Role, 109 originalUserName: x.head.originalUserName, 102 110 Passwd: x.head.Passwd, 103 Name: x.head.Name 111 Name: x.head.Name, 112 PharmacyMedicines: x.head.PharmacyMedicines, 113 Pharmacy: x.head.Pharmacy 104 114 }); 105 115 this.setLocalStorage(x); -
Farmatiko/ClientApp/src/environments/environment.ts
r1f4846d rd23bf72 5 5 export const environment = { 6 6 production: false, 7 baseApiUrl: 'https://localhost: 44342/',7 baseApiUrl: 'https://localhost:5001/', 8 8 }; 9 9
Note:
See TracChangeset
for help on using the changeset viewer.