diff --git a/Html-files/login.html b/Html-files/login.html index fa22099..268dee1 100644 --- a/Html-files/login.html +++ b/Html-files/login.html @@ -387,36 +387,7 @@

LOGIN= 8; - - // Clear previous error message - document.getElementById('error-message').textContent = ''; - - // Validate the email and password separately - if (!emailPattern.test(emailInput)) { - // Display an error message if the email format is incorrect - document.getElementById('error-message').textContent = 'Invalid email format.'; - } else if (!isValidPassword) { - // Display an error message if the password is too short - document.getElementById('error-message').textContent = 'Password must be at least 8 characters.'; - } else { - // If both are valid, redirect to logged.html - window.location.assign('logged.html'); - } - }); + // Toggle password visibility function togglePasswordVisibility() { @@ -433,6 +404,47 @@

LOGIN + +
+ + - \ No newline at end of file +