From dbee88f79596250d2b52a5b1ae0c943f2744398a Mon Sep 17 00:00:00 2001 From: Curtis Date: Fri, 29 May 2020 02:17:38 +0000 Subject: [PATCH] Update auth.js to fix #97 login failure --- app/soapbox/actions/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/actions/auth.js b/app/soapbox/actions/auth.js index edce3a29a..2ff3ea1e1 100644 --- a/app/soapbox/actions/auth.js +++ b/app/soapbox/actions/auth.js @@ -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.'));