diff --git a/src/app/ChangePassword/page.tsx b/src/app/ChangePassword/page.tsx index 1797470..5b044c9 100644 --- a/src/app/ChangePassword/page.tsx +++ b/src/app/ChangePassword/page.tsx @@ -94,6 +94,8 @@ export default function Login() { placeholder="Enter your password" required id="loginPassword" + value={password} + onChange={(e) => setPassword(e.currentTarget.value)} onCopy={(e) => e.preventDefault()} onPaste={(e) => e.preventDefault()} onCut={(e) => e.preventDefault()} @@ -157,6 +159,8 @@ export default function Login() { else { // If all checks pass + localStorage.setItem("password",password); + localStorage.setItem("Tpin_setup","Y"); router.push("/ChangeTxn"); notifications.show({ title: 'Password Change', diff --git a/src/app/ChangeTxn/page.tsx b/src/app/ChangeTxn/page.tsx index 5bb847e..b775033 100644 --- a/src/app/ChangeTxn/page.tsx +++ b/src/app/ChangeTxn/page.tsx @@ -27,10 +27,7 @@ export default function Login() { const [captchaInput, setCaptchaInput] = useState(''); const [captchaError, setCaptchaError] = useState(''); // const [isClient,SetIsClient] =useState(false); - - // useEffect(()=> SetIsClient(true),[]); - // useEffect(() => { // setCaptcha(generateCaptcha()); // }, []); @@ -162,7 +159,7 @@ export default function Login() { align="center" mb="md">Change Transaction Password