From 19033b8460cb43dc2fa34a2cffa932b5efe111ca Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Sat, 19 Aug 2017 15:39:58 +0200 Subject: Add profile page --- src/auth/index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/auth/index.js') 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; -- cgit v1.2.3