Changeset ad60966 for Farmatiko/ClientApp/src/app/shared
- Timestamp:
- 11/05/20 08:53:48 (4 years ago)
- Branches:
- master
- Children:
- 1db5673
- Parents:
- afc9a9a
- Location:
- Farmatiko/ClientApp/src/app/shared
- Files:
-
- 1 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/shared/data.service.ts
rafc9a9a rad60966 95 95 96 96 97 getPandemic() : Observable<IPandemic []> {98 return this.http.get<IPandemic []>(this.basePandemicUrl)97 getPandemic() : Observable<IPandemic> { 98 return this.http.get<IPandemic>(this.basePandemicUrl) 99 99 .pipe(catchError(this.handleError)); 100 100 } -
Farmatiko/ClientApp/src/app/shared/interceptors/jwt.interceptor.ts
rafc9a9a rad60966 7 7 } from '@angular/common/http'; 8 8 import { Observable } from 'rxjs'; 9 import { environment } from '../../../environments/environment'; 9 10 import { AuthService } from '../services/auth.service'; 10 import { environment } from '../../../environments/environment';11 11 12 12 @Injectable() -
Farmatiko/ClientApp/src/app/shared/interfaces.ts
rafc9a9a rad60966 53 53 Pharmacy?: IPharmacy[]; 54 54 Email: string; 55 Name: string; 55 56 Passwd: string; 56 Name: string;57 57 originalUserName?: string; 58 58 Role?: string; -
Farmatiko/ClientApp/src/app/shared/services/auth.service.ts
rafc9a9a rad60966 36 36 this.http.get<LoginResult>(`${this.apiUrl}/user`).subscribe((x) => { 37 37 this._user.next({ 38 Email: x.head.Email, 39 Role: x.head.Role, 40 originalUserName: x.head.originalUserName, 38 Email: x.username, 41 39 Passwd: x.head.Passwd, 40 Role: x.role, 41 originalUserName: x.originalUserName, 42 42 Name: x.head.Name, 43 43 PharmacyMedicines: x.head.PharmacyMedicines, … … 64 64 map((x) => { 65 65 this._user.next({ 66 Email: x.head.Email, 67 Role: x.head.Role, 68 originalUserName: x.head.originalUserName, 66 Email: x.username, 69 67 Passwd: x.head.Passwd, 68 Role: x.role, 69 originalUserName: x.originalUserName, 70 70 Name: x.head.Name, 71 71 PharmacyMedicines: x.head.PharmacyMedicines, … … 105 105 map((x) => { 106 106 this._user.next({ 107 Email: x.head.Email, 108 Role: x.head.Role, 109 originalUserName: x.head.originalUserName, 107 Email: x.username, 110 108 Passwd: x.head.Passwd, 109 Role: x.role, 110 originalUserName: x.originalUserName, 111 111 Name: x.head.Name, 112 112 PharmacyMedicines: x.head.PharmacyMedicines,
Note:
See TracChangeset
for help on using the changeset viewer.