0

How to make a password entry website?

A man who know password can entry the website. How??

9th Dec 2022, 2:54 AM
Mohammed ObaidullahM
Mohammed ObaidullahM - avatar
1 Respuesta
+ 2
In the following code, the welcome message is initially hidden by setting the display property of the welcome-message h1 element to "none". When the form is submitted and the password is correct, the checkPassword function sets the display property of the welcome-message h1 element to "block", which causes the element to be displayed on the page. If the password is incorrect, the checkPassword function does not change the display property of the welcome-message h1 element, so it remains hidden. https://code.sololearn.com/WcZXgy0l9231/?ref=app This is a very simple implementation and is not intended for use in a real-world website. In a real-world scenario, you would want to use a secure authentication system and implement proper server-side handling of the password and form submission.
9th Dec 2022, 3:22 AM
Calviղ
Calviղ - avatar