Don't call verify_credentials twice when an account fails
This commit is contained in:
parent
f2f720ca21
commit
8d8e4f2ee8
|
@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- Compatibility: fix version parsing for Friendica.
|
- Compatibility: fix version parsing for Friendica.
|
||||||
- UI: fixed various overflow issues related to long usernames.
|
- UI: fixed various overflow issues related to long usernames.
|
||||||
- UI: fixed display of Markdown code blocks in the reply indicator.
|
- UI: fixed display of Markdown code blocks in the reply indicator.
|
||||||
|
- Auth: fixed too many API requests when the server has an error.
|
||||||
|
|
||||||
## [3.2.0] - 2023-02-15
|
## [3.2.0] - 2023-02-15
|
||||||
|
|
||||||
|
|
|
@ -178,8 +178,7 @@ export const rememberAuthAccount = (accountUrl: string) =>
|
||||||
|
|
||||||
export const loadCredentials = (token: string, accountUrl: string) =>
|
export const loadCredentials = (token: string, accountUrl: string) =>
|
||||||
(dispatch: AppDispatch) => dispatch(rememberAuthAccount(accountUrl))
|
(dispatch: AppDispatch) => dispatch(rememberAuthAccount(accountUrl))
|
||||||
.then(() => dispatch(verifyCredentials(token, accountUrl)))
|
.finally(() => dispatch(verifyCredentials(token, accountUrl)));
|
||||||
.catch(() => dispatch(verifyCredentials(token, accountUrl)));
|
|
||||||
|
|
||||||
export const logIn = (username: string, password: string) =>
|
export const logIn = (username: string, password: string) =>
|
||||||
(dispatch: AppDispatch) => dispatch(getAuthApp()).then(() => {
|
(dispatch: AppDispatch) => dispatch(getAuthApp()).then(() => {
|
||||||
|
|
Loading…
Reference in New Issue