Signup is working

This commit is contained in:
2019-10-11 17:34:35 -04:00
parent 00ed9d64c5
commit 27efa858d5
6 changed files with 42 additions and 7 deletions

View File

@@ -38,6 +38,8 @@ export const signupUser = (newUserData, history) => (dispatch) => {
axios
.post("/signup", newUserData)
.then((res) => {
console.log(res);
console.log(res.data);
// Save the signup token
setAuthorizationHeader(res.data.token);
dispatch(getUserData());