Changeset b738035 for trip-planner-front/src/app/_services/user.service.ts
- Timestamp:
- 01/24/22 21:08:32 (3 years ago)
- Branches:
- master
- Children:
- 76712b2
- Parents:
- bdd6491
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/_services/user.service.ts
rbdd6491 rb738035 43 43 let user = sessionStorage.getItem("username"); 44 44 let token = sessionStorage.getItem("token"); 45 console.log(user);46 console.log(token);47 console.log(!(user === null));48 45 return !(user === null); 49 46 } 50 47 48 getAllUsernames() { 49 let url = "http://localhost:8080/api/users/usernames"; 50 return this.httpClient.get<string[]>(url); 51 } 52 53 getPassword(loginRequest : LoginRequest){ 54 let url="http://localhost:8080/api/users/password"; 55 const options = { 56 57 body: { 58 "username": loginRequest.username 59 60 } 61 } 62 return this.httpClient.request('get', url, options); 63 } 64 51 65 }
Note:
See TracChangeset
for help on using the changeset viewer.