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