mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 00:30:02 +00:00
Implemented generic token handling
This commit is contained in:
@@ -17,7 +17,7 @@ import {
|
||||
} from "@nextui-org/react";
|
||||
import {Alert, AlertDescription, AlertTitle} from "Frontend/@/components/ui/alert";
|
||||
import {useNavigate} from "react-router-dom";
|
||||
import {NotificationEndpoint, PasswordResetEndpoint} from "Frontend/generated/endpoints";
|
||||
import {MessageEndpoint, PasswordResetEndpoint} from "Frontend/generated/endpoints";
|
||||
import {toast} from "sonner";
|
||||
|
||||
export default function LoginView() {
|
||||
@@ -35,7 +35,7 @@ export default function LoginView() {
|
||||
const navigate = useNavigate();
|
||||
|
||||
useEffect(() => {
|
||||
NotificationEndpoint.isEnabled().then(setCanResetPassword);
|
||||
MessageEndpoint.isEnabled().then(setCanResetPassword);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user