Skip to content
Snippets Groups Projects
Commit 144719fb authored by Lucas Eduardo Schoenfelder's avatar Lucas Eduardo Schoenfelder
Browse files

added function to clear session storage on logout

parent 98fcd390
No related branches found
No related tags found
4 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!32Homologa
...@@ -81,10 +81,13 @@ function reducer(state, action) { ...@@ -81,10 +81,13 @@ function reducer(state, action) {
currentUser:action.login currentUser:action.login
} }
case 'USER_LOGGED_OUT': case 'USER_LOGGED_OUT':
sessionStorage.clear()
return { return {
...state, ...state,
userIsLoggedIn:action.userLoggedOut, userIsLoggedIn:action.userLoggedOut,
currentUser:action.login currentUser:action.login,
userAgreedToPublicationTerms: false,
userAgreedToPublicationPermissions: false
} }
case 'USER_AGREED_TO_PUBLICATION_TERMS': case 'USER_AGREED_TO_PUBLICATION_TERMS':
return { return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment