+ 1
How to make logins?
Do you can explain how to make logins on websites. I mean how to manage user names and passwords.
2 Respuestas
+ 1
(I'm a java learner and not a javascript learner. sorry if im saying something that makes no sense)
1. Maybe use a HashMap for managing the Usernames + Password.
and make them private or protected.
2. import java.util.Scanner
String INPUT
INPUT = scan.nextline();
if(INPUT.equals(*Password*) <-
*some code to grant access*
this makes your program check if the user input is equal to the password
and then if its right it executes the code that you want.
I hope this helps.
P.S I don't know the difference between javascript and java so maybe i just teached you bullsh*t. Try it once and if it fails it means that im just stupid.
0
qw