summaryrefslogtreecommitdiff
path: root/app/client/auth/auth.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-17 12:54:23 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-17 12:54:23 +0200
commitf3f84961eb9ddf3dacfb3e4bf5c56504303c048f (patch)
tree7fe27edce878ca6bd11ebe163c034311d57f936f /app/client/auth/auth.actions.js
parent15e5df27774fef8d976c74b6ec7bcf8f878e5834 (diff)
redirects work
Diffstat (limited to 'app/client/auth/auth.actions.js')
-rw-r--r--app/client/auth/auth.actions.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/client/auth/auth.actions.js b/app/client/auth/auth.actions.js
index aa46d1b..956e7b0 100644
--- a/app/client/auth/auth.actions.js
+++ b/app/client/auth/auth.actions.js
@@ -49,7 +49,7 @@ export function login(username, password) {
dispatch(setCurrentUser(data.user))
})
.catch(error => {
- console.error(error)
+ console.error('login error', error)
dispatch(setError(true))
})
}
@@ -66,7 +66,7 @@ export function signup(data) {
dispatch(setCurrentUser(data.user))
})
.catch(error => {
- console.error(error)
+ console.error('signup error', error)
dispatch(initialized())
})
}
@@ -83,7 +83,7 @@ export function checkin() {
dispatch(setCurrentUser(data.user))
})
.catch(error => {
- console.error('err', error)
+ console.error('checkin error', error)
dispatch(initialized())
})
}
@@ -100,7 +100,7 @@ export function logout() {
dispatch(initialized())
})
.catch(error => {
- console.error('err', error)
+ console.error('logout error', error)
dispatch(clearCurrentUser())
dispatch(initialized())
})