(data)
| 66 | } |
| 67 | |
| 68 | export function manualLogin(data) { |
| 69 | return dispatch => { |
| 70 | dispatch(beginLogin()); |
| 71 | |
| 72 | return makeUserRequest('post', data, '/login') |
| 73 | .then( response => { |
| 74 | if (response.status === 200) { |
| 75 | dispatch(loginSuccess()); |
| 76 | } else { |
| 77 | dispatch(loginError()); |
| 78 | } |
| 79 | }); |
| 80 | }; |
| 81 | } |
| 82 | |
| 83 | export function signUp(data) { |
| 84 | return dispatch => { |
no test coverage detected