mirror of
https://github.com/immich-app/immich.git
synced 2025-10-26 08:12:33 -04:00
fix: oauth auto-login infinite loop (#20904)
This commit is contained in:
parent
53f9fc2d1c
commit
f92247c99b
@ -30,8 +30,8 @@
|
|||||||
eventManager.emit('auth.login', user);
|
eventManager.emit('auth.login', user);
|
||||||
};
|
};
|
||||||
|
|
||||||
const onFirstLogin = async () => await goto(AppRoute.AUTH_CHANGE_PASSWORD);
|
const onFirstLogin = () => goto(AppRoute.AUTH_CHANGE_PASSWORD);
|
||||||
const onOnboarding = async () => await goto(AppRoute.AUTH_ONBOARDING);
|
const onOnboarding = () => goto(AppRoute.AUTH_ONBOARDING);
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
if (!$featureFlags.oauth) {
|
if (!$featureFlags.oauth) {
|
||||||
@ -54,6 +54,7 @@
|
|||||||
console.error('Error [login-form] [oauth.callback]', error);
|
console.error('Error [login-form] [oauth.callback]', error);
|
||||||
oauthError = getServerErrorMessage(error) || $t('errors.unable_to_complete_oauth_login');
|
oauthError = getServerErrorMessage(error) || $t('errors.unable_to_complete_oauth_login');
|
||||||
oauthLoading = false;
|
oauthLoading = false;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user