0.0.8.1
This commit is contained in:
@@ -86,12 +86,6 @@ export default function RegisterPage() {
|
||||
</Alert>
|
||||
)}
|
||||
|
||||
<Alert className="bg-blue-50 border-blue-200 dark:bg-blue-950 dark:border-blue-800">
|
||||
<AlertDescription className="text-sm text-blue-800 dark:text-blue-200">
|
||||
💡 系统已有测试账号,建议直接<Link href="/auth/signin" className="underline font-semibold">登录</Link>使用
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="name">姓名</Label>
|
||||
<Input
|
||||
@@ -144,7 +138,7 @@ export default function RegisterPage() {
|
||||
</div>
|
||||
</CardContent>
|
||||
|
||||
<CardFooter className="flex flex-col space-y-4">
|
||||
<CardFooter className="flex flex-col space-y-4 pt-6">
|
||||
<Button
|
||||
type="submit"
|
||||
className="w-full"
|
||||
|
||||
@@ -13,8 +13,8 @@ import { BookOpen } from "lucide-react"
|
||||
|
||||
export default function SignInPage() {
|
||||
const router = useRouter()
|
||||
const [email, setEmail] = useState("wang@example.com")
|
||||
const [password, setPassword] = useState("123456")
|
||||
const [email, setEmail] = useState("")
|
||||
const [password, setPassword] = useState("")
|
||||
const [error, setError] = useState("")
|
||||
const [loading, setLoading] = useState(false)
|
||||
|
||||
@@ -76,46 +76,6 @@ export default function SignInPage() {
|
||||
</Alert>
|
||||
)}
|
||||
|
||||
<Alert className="bg-blue-50 border-blue-200 dark:bg-blue-950 dark:border-blue-800">
|
||||
<AlertDescription className="text-sm text-blue-800 dark:text-blue-200">
|
||||
<div className="space-y-2">
|
||||
<div className="font-semibold">💡 测试账号:</div>
|
||||
<div className="space-y-1 text-xs">
|
||||
<div className="flex items-center justify-between">
|
||||
<span>王先生: wang@example.com / 123456</span>
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
className="h-6 px-2 text-xs"
|
||||
onClick={() => {
|
||||
setEmail("wang@example.com")
|
||||
setPassword("123456")
|
||||
}}
|
||||
>
|
||||
使用
|
||||
</Button>
|
||||
</div>
|
||||
<div className="flex items-center justify-between">
|
||||
<span>虞女士: yu@example.com / 123456</span>
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
className="h-6 px-2 text-xs"
|
||||
onClick={() => {
|
||||
setEmail("yu@example.com")
|
||||
setPassword("123456")
|
||||
}}
|
||||
>
|
||||
使用
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="email">邮箱</Label>
|
||||
<Input
|
||||
@@ -143,7 +103,7 @@ export default function SignInPage() {
|
||||
</div>
|
||||
</CardContent>
|
||||
|
||||
<CardFooter className="flex flex-col space-y-4">
|
||||
<CardFooter className="flex flex-col space-y-4 pt-6">
|
||||
<Button
|
||||
type="submit"
|
||||
className="w-full"
|
||||
|
||||
Reference in New Issue
Block a user