MCPcopy Index your code
hub / github.com/reactGo/reactGo / manualLogin

Function manualLogin

app/actions/users.js:68–81  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

66}
67
68export 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
83export function signUp(data) {
84 return dispatch => {

Callers 1

_onLoginSubmitMethod · 0.90

Calls 4

beginLoginFunction · 0.85
makeUserRequestFunction · 0.85
loginSuccessFunction · 0.85
loginErrorFunction · 0.85

Tested by

no test coverage detected