mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(app): show the setup wizard on new instances, not sign-in (#3260)
This commit is contained in:
1 parent
c402c52a8a
commit
5c63d81ffd
1 file changed
+3
-1
@@ -85,7 +85,9 @@ export function whenAuthenticated(handler: AuthRouteEnterHandler): AuthRouteEnte
|
||||
}
|
||||
|
||||
export const requireAuthentication: AuthRouteEnterHandler = afterSessionInitialization((context) =>
|
||||
Authentication.isAuthenticated
|
||||
Authentication.isAuthenticated ||
|
||||
RuntimeConfig.getSnapshotOrNull() === null ||
|
||||
RuntimeConfig.requiresSelfHostedSetup()
|
||||
? undefined
|
||||
: new Redirect(setPathQueryParams(Routes.LOGIN, {redirect_to: context.url.pathname + context.url.search})),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user