From 2f0094653d5ff39d91aa022ce80b73fb61461dd9 Mon Sep 17 00:00:00 2001
From: saras-69 <115482884+saras-69@users.noreply.github.com>
Date: Mon, 4 Nov 2024 01:42:43 +0530
Subject: [PATCH 1/3] Add "Forgot Password" Feature #1614
---
forgotPassword.html | 171 ++++++++++++++++++++++++++++++++++++++++++++
login/login.css | 83 ++++++++++-----------
login/script.js | 29 ++++----
newLogin.html | 32 +++++----
4 files changed, 244 insertions(+), 71 deletions(-)
create mode 100644 forgotPassword.html
diff --git a/forgotPassword.html b/forgotPassword.html
new file mode 100644
index 00000000..747feb9a
--- /dev/null
+++ b/forgotPassword.html
@@ -0,0 +1,171 @@
+
+
+
+
+
@@ -106,7 +108,7 @@
Start your
journey now
const strengthMsg = document.getElementById("passwordStrengthMsg");
let strength = "Weak";
let color = "red";
-
+
if (password.length >= 8 && /[A-Z]/.test(password) && /[a-z]/.test(password) && /[0-9]/.test(password) && /[!@#\$%\^\&*\)\(+=._-]/.test(password)) {
strength = "Strong";
color = "green";
@@ -144,13 +146,12 @@
Start your
journey now
//Form validation for registration name
document.getElementById("registerName").addEventListener("keypress", function (event) {
- var char = String.fromCharCode(event.which);
+ var char = String.fromCharCode(event.which);
if (!(/[a-zA-Z]/.test(char))) {
- event.preventDefault();
+ event.preventDefault();
}
});
-
document.getElementById("loginForm").addEventListener("submit", function (event) {
event.preventDefault();
validateForm("login");
@@ -236,4 +237,5 @@
Start your
journey now
});
-
+
+
\ No newline at end of file
From 1860d3a2219d55c278e293427eb59875d13ade29 Mon Sep 17 00:00:00 2001
From: saras-69 <115482884+saras-69@users.noreply.github.com>
Date: Mon, 4 Nov 2024 01:43:50 +0530
Subject: [PATCH 2/3] .
---
forgotPassword.html | 28 +++++++++++++++++++++++++---
1 file changed, 25 insertions(+), 3 deletions(-)
diff --git a/forgotPassword.html b/forgotPassword.html
index 747feb9a..500c994e 100644
--- a/forgotPassword.html
+++ b/forgotPassword.html
@@ -49,7 +49,6 @@
display: flex;
justify-content: center;
align-items: center;
-
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
@@ -127,7 +126,7 @@