mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 04:35:40 +00:00
refactor: redirect to root page when no username or ip is provided in the unauthorized page
This commit is contained in:
@@ -20,7 +20,7 @@ export const UnauthorizedPage = () => {
|
||||
const ip = searchParams.get("ip");
|
||||
|
||||
if (!username && !ip) {
|
||||
return <Navigate to="/login" />;
|
||||
return <Navigate to="/" />;
|
||||
}
|
||||
|
||||
const { t } = useTranslation();
|
||||
|
||||
Reference in New Issue
Block a user