From 84061269c24d77136e7e6b66d362c4de25705e18 Mon Sep 17 00:00:00 2001 From: sirpiglr <49359077-sirpiglr@users.noreply.replit.com> Date: Wed, 17 Dec 2025 02:30:12 +0000 Subject: [PATCH] Remove the user signup functionality from the application Remove signup functionality from the client-side login page, including associated UI elements and logic, and adjust the login page to exclusively handle user authentication. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 079607b1-dbb2-40bc-aab3-079e191d5b97 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/z60QszX Replit-Helium-Checkpoint-Created: true --- client/src/pages/login.tsx | 60 ++++++-------------------------------- 1 file changed, 9 insertions(+), 51 deletions(-) diff --git a/client/src/pages/login.tsx b/client/src/pages/login.tsx index c213ddc..ed05884 100644 --- a/client/src/pages/login.tsx +++ b/client/src/pages/login.tsx @@ -1,7 +1,7 @@ import { useState } from "react"; import { motion } from "framer-motion"; import { useLocation } from "wouter"; -import { Shield, Lock, AlertCircle, UserPlus } from "lucide-react"; +import { Shield, Lock, AlertCircle } from "lucide-react"; import { useAuth } from "@/lib/auth"; import gridBg from '@assets/generated_images/dark_subtle_digital_grid_texture.png'; @@ -9,10 +9,8 @@ export default function Login() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const [error, setError] = useState(""); - const [success, setSuccess] = useState(""); const [isLoading, setIsLoading] = useState(false); - const [mode, setMode] = useState<'login' | 'signup'>('login'); - const { login, signup } = useAuth(); + const { login } = useAuth(); const [, setLocation] = useLocation(); const handleSubmit = async (e: React.FormEvent) => { @@ -20,21 +18,14 @@ export default function Login() { if (isLoading) return; setError(""); - setSuccess(""); setIsLoading(true); try { - if (mode === 'login') { - await login(email, password); - await new Promise(resolve => setTimeout(resolve, 100)); - setLocation("/admin"); - } else { - const result = await signup(email, password); - setSuccess(result.message || "Account created! Please check your email to confirm."); - setMode('login'); - } + await login(email, password); + await new Promise(resolve => setTimeout(resolve, 100)); + setLocation("/admin"); } catch (err: any) { - setError(err.message || `${mode === 'login' ? 'Login' : 'Signup'} failed`); + setError(err.message || "Login failed"); } finally { setIsLoading(false); } @@ -60,31 +51,10 @@ export default function Login() { AeThex Command
- {mode === 'login' ? 'Authorized Personnel Only' : 'Create Your Account'} + Authorized Personnel Only
-