This commit is contained in:
Mathias Biilmann Christensen
2016-05-30 17:13:40 -07:00
parent ba8febd107
commit 7601d3f5a1
5 changed files with 11 additions and 36 deletions

View File

@ -31,8 +31,7 @@ export function loginUser(credentials) {
const backend = currentBackend(state.config);
dispatch(authenticating());
backend.authenticate(credentials)
.then((user) => dispatch(authenticate(user)))
//.catch((err) => dispatch(authError(err)));
return backend.authenticate(credentials)
.then((user) => dispatch(authenticate(user)));
};
}