Merge branch 'login-skip-app-token' into 'develop'

Auth: logIn, don't create an unnecessary app token

See merge request soapbox-pub/soapbox-fe!901
This commit is contained in:
Alex Gleason 2021-12-06 20:47:36 +00:00
commit f03d8861b6
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ export function loadCredentials(token, accountUrl) {
export function logIn(intl, username, password) { export function logIn(intl, username, password) {
return (dispatch, getState) => { return (dispatch, getState) => {
return dispatch(createAppAndToken()).then(() => { return dispatch(createAuthApp()).then(() => {
return dispatch(createUserToken(username, password)); return dispatch(createUserToken(username, password));
}).catch(error => { }).catch(error => {
if (error.response.data.error === 'mfa_required') { if (error.response.data.error === 'mfa_required') {