This commit is contained in:
NotII
2025-03-19 01:46:09 +01:00
parent 998986b9fc
commit 6bdcb15552
4 changed files with 1111 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ import { Label } from "@/components/ui/label";
import { toast } from "sonner";
export default function LoginPage() {
const [username, setUsername] = useState("");
const [username, setUsername] = useState("");
const [password, setPassword] = useState("");
const [isLoading, setIsLoading] = useState(false);
const [isRedirecting, setIsRedirecting] = useState(false);
@@ -26,6 +26,7 @@ export default function LoginPage() {
progress: 0,
message: "Preparing your session..."
});
const [error, setError] = useState("");
const router = useRouter();
// Check if already logged in