summaryrefslogtreecommitdiff
path: root/src/auth
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-08-15 23:24:28 +0300
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:42 +0200
commit91c8088e1d7def9242f60c708cd34f25dcb77d76 (patch)
treeb68065019692cea5cf6c3d14b811104aff2f0879 /src/auth
parentd7512ace72448242b392299cf459c9c72c8dbee5 (diff)
Connect to backend and fetch initial project data
Diffstat (limited to 'src/auth')
-rw-r--r--src/auth/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auth/index.js b/src/auth/index.js
index 5ea24ff9..1bfc10c1 100644
--- a/src/auth/index.js
+++ b/src/auth/index.js
@@ -1,4 +1,4 @@
-import {COMPLETE_LOGIN, LOG_OUT} from "../actions/auth";
+import {LOG_IN_SUCCEEDED, LOG_OUT} from "../actions/auth";
const getAuthObject = () => {
const authItem = localStorage.getItem("auth");
@@ -38,7 +38,7 @@ export const clearAuthLocalStorage = () => {
export const authRedirectMiddleware = store => next => action => {
switch (action.type) {
- case COMPLETE_LOGIN:
+ case LOG_IN_SUCCEEDED:
saveAuthLocalStorage(action.payload);
window.location.href = "/projects";
break;