fix: change in login page
This commit is contained in:
@@ -20,7 +20,7 @@ function generateCaptcha(length = 6) {
|
||||
return Array.from({ length }, () => chars[Math.floor(Math.random() * chars.length)]).join("");
|
||||
}
|
||||
|
||||
export default function Login() {
|
||||
export default function Changeloginpwd() {
|
||||
const router = useRouter();
|
||||
// const [error, setError] = useState<string | null>(null);
|
||||
//const [CIF, SetCIF] = useState("");
|
||||
@@ -86,7 +86,7 @@ export default function Login() {
|
||||
<Card p="xl" w="35vw">
|
||||
<Title order={3}
|
||||
// @ts-ignore
|
||||
align="center" mb="md">Change User Login Password</Title>
|
||||
align="center" mb="md">Set Login Password</Title>
|
||||
|
||||
<form >
|
||||
<PasswordInput
|
||||
@@ -159,8 +159,8 @@ export default function Login() {
|
||||
|
||||
else {
|
||||
// If all checks pass
|
||||
localStorage.setItem("password",password);
|
||||
localStorage.setItem("Tpin_setup","Y");
|
||||
localStorage.setItem("password", password);
|
||||
localStorage.setItem("Tpin_setup", "Y");
|
||||
router.push("/ChangeTxn");
|
||||
notifications.show({
|
||||
title: 'Password Change',
|
||||
|
@@ -15,7 +15,7 @@ function generateCaptcha(length = 6) {
|
||||
return Array.from({ length }, () => chars[Math.floor(Math.random() * chars.length)]).join("");
|
||||
}
|
||||
|
||||
export default function Login() {
|
||||
export default function Changetransactionpwd() {
|
||||
const router = useRouter();
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
const [CIF, SetCIF] = useState("");
|
||||
@@ -156,7 +156,7 @@ export default function Login() {
|
||||
<Card p="xl" w="35vw">
|
||||
<Title order={3}
|
||||
// @ts-ignore
|
||||
align="center" mb="md">Change Transaction Password</Title>
|
||||
align="center" mb="md">Set Transaction Password</Title>
|
||||
<form>
|
||||
<PasswordInput
|
||||
label="Transaction Password"
|
||||
|
Reference in New Issue
Block a user