develop-me / bagajob

Job Hunting Management App built by Develop Me students for Develop Me students.
https://bagajob.developme.space
GNU Affero General Public License v3.0
1 stars 2 forks source link

Logout - clear user info from state #49

Closed kierancott closed 4 years ago

kierancott commented 4 years ago

Issue:

The app stores the bearer token in state for use in requests sent to the API. There is no way for the user to clear their information in state, leading to bearer token conflict when another user tries to log in.

Action:

Implement "Log Out" functionality to clear user information, including token, from state.

kierancott commented 4 years ago

Resolved

Commits https://github.com/develop-me/bagajob/pull/42/commits/3a0938cecb37a54388c621b722b3193f2eb3ef7d https://github.com/develop-me/bagajob/pull/42/commits/fe2857b9a0d84667a245b30efaa334e02709c9cb

Action:

Result:

Visiting api/home/logout and clicking "Log Out" now clears state and prompts user to return to login

Screenshot 2020-09-19 at 17 30 20 Screenshot 2020-09-19 at 17 42 07

More styling still required.

kierancott commented 4 years ago

Styling completed: 524844585d18eb355f41153a196daf555b30ea21 8497adb9bb115604424460cb1e6942392caddfe3 8788ee0e8a32b8b0f77816afdfc80a9a569d862a