mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2025-05-17 11:58:14 +08:00
Fixed activation page not redirecting properly on success and password reset fields not setting proper values
This commit is contained in:
parent
150663587c
commit
45c9fd588a
3 changed files with 9 additions and 9 deletions
|
@ -38,7 +38,7 @@ export default function ActivationPage() {
|
|||
theme: "light",
|
||||
});
|
||||
setTimeout(() => {
|
||||
navigate("/dashboard");
|
||||
navigate("/");
|
||||
});
|
||||
} else {
|
||||
setFeedback("Invalid activation link");
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue