From d8904d1fa6750edf39efa1cd283df694e7bf447a Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Mon, 13 May 2024 08:19:06 -0500 Subject: [PATCH] cleanup --- frigate/config.py | 7 ------- web/src/components/{ => auth}/AuthForm.tsx | 8 ++++---- web/src/{ => pages}/LoginPage.tsx | 0 3 files changed, 4 insertions(+), 11 deletions(-) rename web/src/components/{ => auth}/AuthForm.tsx (94%) rename web/src/{ => pages}/LoginPage.tsx (100%) diff --git a/frigate/config.py b/frigate/config.py index 9be5b9624..163e99367 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -116,13 +116,6 @@ class UIConfig(FrigateBaseModel): ) -class UserConfig(FrigateBaseModel): - user: str = Field(title="Username") - password_hash: str = Field( - title="Password hashed and salted using hashlib.pbkdf2_hmac" - ) - - class AuthConfig(FrigateBaseModel): enabled: bool = Field(default=False, title="Enable authentication") reset_admin_password: bool = Field( diff --git a/web/src/components/AuthForm.tsx b/web/src/components/auth/AuthForm.tsx similarity index 94% rename from web/src/components/AuthForm.tsx rename to web/src/components/auth/AuthForm.tsx index cc1b6885b..a3746f3a8 100644 --- a/web/src/components/AuthForm.tsx +++ b/web/src/components/auth/AuthForm.tsx @@ -3,11 +3,11 @@ import * as React from "react"; import { cn } from "@/lib/utils"; -import { Input } from "./ui/input"; -import { Button } from "./ui/button"; -import ActivityIndicator from "./indicators/activity-indicator"; +import { Input } from "@/components/ui/input"; +import { Button } from "@/components/ui/button"; +import ActivityIndicator from "@/components/indicators/activity-indicator"; import axios, { AxiosError } from "axios"; -import { Toaster } from "./ui/sonner"; +import { Toaster } from "@/components/ui/sonner"; import { toast } from "sonner"; import { Form, diff --git a/web/src/LoginPage.tsx b/web/src/pages/LoginPage.tsx similarity index 100% rename from web/src/LoginPage.tsx rename to web/src/pages/LoginPage.tsx