(data)
| 81 | } |
| 82 | |
| 83 | export function signUp(data) { |
| 84 | return dispatch => { |
| 85 | dispatch(beginSignUp()); |
| 86 | |
| 87 | return makeUserRequest('post', data, '/signup') |
| 88 | .then( response => { |
| 89 | if (response.status === 200) { |
| 90 | dispatch(signUpSuccess()); |
| 91 | } else { |
| 92 | dispatch(signUpError()); |
| 93 | } |
| 94 | }); |
| 95 | }; |
| 96 | } |
| 97 | |
| 98 | export function logOut() { |
| 99 | return dispatch => { |
nothing calls this directly
no test coverage detected