summaryrefslogtreecommitdiff
path: root/src/actions/auth.js
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/actions/auth.js
parentd7512ace72448242b392299cf459c9c72c8dbee5 (diff)
Connect to backend and fetch initial project data
Diffstat (limited to 'src/actions/auth.js')
-rw-r--r--src/actions/auth.js20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/actions/auth.js b/src/actions/auth.js
index f54563ae..2ca6a986 100644
--- a/src/actions/auth.js
+++ b/src/actions/auth.js
@@ -1,15 +1,23 @@
-export const COMPLETE_LOGIN = "COMPLETE_LOGIN";
+export const LOG_IN = "LOG_IN";
+export const LOG_IN_SUCCEEDED = "LOG_IN_SUCCEEDED";
export const LOG_OUT = "LOG_OUT";
-export const completeLogin = (payload) => {
+export function logIn(payload) {
return {
- type: COMPLETE_LOGIN,
+ type: LOG_IN,
payload
};
-};
+}
-export const logOut = () => {
+export function logInSucceeded(payload) {
+ return {
+ type: LOG_IN_SUCCEEDED,
+ payload
+ };
+}
+
+export function logOut() {
return {
type: LOG_OUT
};
-};
+}