Changeset 2a2614e for ReserveNGo-frontend/src/PiniaStores/UserStore.js
- Timestamp:
- 01/26/25 00:32:02 (3 months ago)
- Branches:
- master
- Children:
- 231918f
- Parents:
- 9bcad23
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ReserveNGo-frontend/src/PiniaStores/UserStore.js
r9bcad23 r2a2614e 38 38 this.data = JSON.parse(nonparsed); 39 39 } 40 }, 41 clearLocalStorage() { 42 43 this.data = { 44 id: 0, 45 firstName: "", 46 lastName: "", 47 email: "", 48 phoneNumber: "", 49 role: "UN_AUTHENTICATED", 50 token: "" 51 } 52 localStorage.setItem('userData', JSON.stringify(this.data)); 53 40 54 } 41 55
Note:
See TracChangeset
for help on using the changeset viewer.