mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 20:55:42 +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");
|
const ip = searchParams.get("ip");
|
||||||
|
|
||||||
if (!username && !ip) {
|
if (!username && !ip) {
|
||||||
return <Navigate to="/login" />;
|
return <Navigate to="/" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|||||||
Reference in New Issue
Block a user