Fixed activation page not redirecting properly on success and password reset fields not setting proper values

This commit is contained in:
Keannu Christian Bernasol 2023-11-20 00:23:59 +08:00
parent 150663587c
commit 45c9fd588a
3 changed files with 9 additions and 9 deletions

View file

@ -38,7 +38,7 @@ export default function ActivationPage() {
theme: "light",
});
setTimeout(() => {
navigate("/dashboard");
navigate("/");
});
} else {
setFeedback("Invalid activation link");

View file

@ -80,9 +80,9 @@ export default function ResetPasswordPage() {
label="Confirm Password"
placeholder={"Re-enter password"}
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
setUser({ ...user, password: e.target.value })
setUser({ ...user, confirm_password: e.target.value })
}
value={user.password}
value={user.confirm_password}
/>
<div style={{ justifyContent: "center", display: "flex" }}>
<div
@ -93,7 +93,7 @@ export default function ResetPasswordPage() {
height: "4px",
marginBottom: 8,
}}
/>{" "}
/>
</div>
<p style={{ ...styles.text_dark, ...styles.text_M }}>{feedback}</p>