aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGirish Ramakrishnan <girish@cloudron.io>2024-03-25 22:19:57 +0100
committerGirish Ramakrishnan <girish@cloudron.io>2024-03-25 22:20:02 +0100
commit238bb91194a457b6c17c81a7a7e44ae8e9396aa1 (patch)
treec448461c5698de2e085b8010e7e53fa45384d283
parent42db1a41cbf733ea4f82c86e5d45a6fbccc8b8f2 (diff)
downloadtrackermap-web-238bb91194a457b6c17c81a7a7e44ae8e9396aa1.tar.gz
trackermap-web-238bb91194a457b6c17c81a7a7e44ae8e9396aa1.tar.bz2
trackermap-web-238bb91194a457b6c17c81a7a7e44ae8e9396aa1.zip
reset password: pressing enter does not submit form
it reloads the page because of missing submit button
-rw-r--r--modern/src/login/ResetPasswordPage.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/modern/src/login/ResetPasswordPage.jsx b/modern/src/login/ResetPasswordPage.jsx
index f2f1a132..d10299ca 100644
--- a/modern/src/login/ResetPasswordPage.jsx
+++ b/modern/src/login/ResetPasswordPage.jsx
@@ -97,6 +97,7 @@ const ResetPasswordPage = () => {
<Button
variant="contained"
color="secondary"
+ type="submit"
onClick={handleSubmit}
disabled={!/(.+)@(.+)\.(.{2,})/.test(email) && !password}
fullWidth