summaryrefslogtreecommitdiff
path: root/src/auth/index.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-08-19 15:39:58 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:43 +0200
commit19033b8460cb43dc2fa34a2cffa932b5efe111ca (patch)
tree79bde2093acce8d8192d27e288d61bc53cf99e07 /src/auth/index.js
parent434be6d21ad665cb6abdf5138d0c563efbfe00b4 (diff)
Add profile page
Diffstat (limited to 'src/auth/index.js')
-rw-r--r--src/auth/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/auth/index.js b/src/auth/index.js
index 8950c529..fb2a7038 100644
--- a/src/auth/index.js
+++ b/src/auth/index.js
@@ -1,4 +1,5 @@
import {LOG_IN_SUCCEEDED, LOG_OUT} from "../actions/auth";
+import {DELETE_CURRENT_USER_SUCCEEDED} from "../actions/users";
const getAuthObject = () => {
const authItem = localStorage.getItem("auth");
@@ -43,6 +44,7 @@ export const authRedirectMiddleware = store => next => action => {
window.location.href = "/simulations";
break;
case LOG_OUT:
+ case DELETE_CURRENT_USER_SUCCEEDED:
clearAuthLocalStorage();
window.location.href = "/";
break;