mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 21:10:12 +02:00
fix server lock route to login page
This commit is contained in:
@@ -34,11 +34,12 @@ export const AppOutlet = () => {
|
||||
);
|
||||
}
|
||||
|
||||
// When server lock is enabled always redirect to login
|
||||
if (serverLock && !currentServer) {
|
||||
return <Navigate replace to={AppRoute.LOGIN} />;
|
||||
}
|
||||
|
||||
if (isActionsRequired || authState === AuthState.INVALID) {
|
||||
if (!serverLock && (isActionsRequired || authState === AuthState.INVALID)) {
|
||||
return <Navigate replace to={AppRoute.ACTION_REQUIRED} />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user