Merge branch 'patch-4' into 'master'
Update auth.js to fix #97 login failure Closes #97 See merge request soapbox-pub/soapbox-fe!37
This commit is contained in:
commit
0feff2833c
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ export function refreshUserToken() {
|
|||
|
||||
export function logIn(username, password) {
|
||||
return (dispatch, getState) => {
|
||||
return dispatch(initAuthApp()).then(() => {
|
||||
return dispatch(createAppAndToken()).then(() => {
|
||||
return dispatch(createUserToken(username, password));
|
||||
}).catch(error => {
|
||||
dispatch(showAlert('Login failed.', 'Invalid username or password.'));
|
||||
|
|
Loading…
Reference in a new issue