feat: forget password

This commit is contained in:
2025-07-29 13:30:41 +05:30
parent 3ad8e69096
commit 16284f4519
2 changed files with 115 additions and 3 deletions

View File

@@ -160,8 +160,10 @@ export default function Login() {
</style>
</Box>
{/* Main */}
<div style={{ display: "flex", height: "75vh", overflow: "hidden", position: "relative",
background:'linear-gradient(to right, #02081eff, #0a3d91)' }}>
<div style={{
display: "flex", height: "75vh", overflow: "hidden", position: "relative",
background: 'linear-gradient(to right, #02081eff, #0a3d91)'
}}>
<div style={{ flex: 1, backgroundColor: "#c1e0f0", position: "relative" }}>
<Image
fit="cover"
@@ -172,7 +174,7 @@ export default function Login() {
/>
</div>
<Box w={{ base: "100%", md: "50%" }} p="lg">
<Card shadow="md" padding="xl" radius="md" style={{ maxWidth: 400,margin: "0 auto",height:'68vh'}}>
<Card shadow="md" padding="xl" radius="md" style={{ maxWidth: 400, margin: "0 auto", height: '68vh' }}>
<form onSubmit={handleLogin}>
<TextInput
label="User ID"
@@ -193,9 +195,18 @@ export default function Login() {
required
mt="sm"
/>
<Box style={{ textAlign: "right"}}>
<Anchor
style={{ fontSize: "14px", color: "#1c7ed6", cursor: "pointer" }}
onClick={() => router.push("/validate_user")}
>
Forgot Password?
</Anchor>
</Box>
<Group mt="sm" align="center">
<Box style={{ backgroundColor: "#fff", fontSize: "18px", textDecoration: "line-through", padding: "4px 8px", fontFamily: "cursive" }}>{captcha}</Box>
<Button size="xs" variant="light" onClick={regenerateCaptcha}>Refresh</Button>
</Group>
<TextInput
label="Enter CAPTCHA"