|
|
@@ -1,4 +1,3 @@
|
|
|
-import React from 'react';
|
|
|
import { useForm } from 'react-hook-form';
|
|
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
|
import { z } from 'zod';
|
|
|
@@ -8,10 +7,9 @@ import { toast } from 'sonner';
|
|
|
|
|
|
import { Button } from '@/client/components/ui/button';
|
|
|
import { Input } from '@/client/components/ui/input';
|
|
|
-import { Label } from '@/client/components/ui/label';
|
|
|
import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/client/components/ui/card';
|
|
|
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from '@/client/components/ui/form';
|
|
|
-import { Eye, EyeOff, User, Lock } from 'lucide-react';
|
|
|
+import { User, Lock } from 'lucide-react';
|
|
|
|
|
|
const loginSchema = z.object({
|
|
|
username: z.string().min(3, '用户名至少3个字符'),
|