import React, { useState } from 'react'; import { useAuth } from '../contexts/AuthContext'; import { MessageSquare } from 'lucide-react'; const LoginForm = () => { const [username, setUsername] = useState(''); const [password, setPassword] = useState(''); const [isLoading, setIsLoading] = useState(false); const [error, setError] = useState(''); const { login } = useAuth(); const handleSubmit = async (e) => { e.preventDefault(); setError(''); if (!username || !password) { setError('Please enter both username and password'); return; } setIsLoading(true); const result = await login(username, password); if (!result.success) { setError(result.error); } setIsLoading(false); }; return (
Sign in to your Claude Code UI account
Enter your credentials to access Claude Code UI