How to make logins? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to make logins?

Do you can explain how to make logins on websites. I mean how to manage user names and passwords​.

2nd Jun 2017, 7:23 PM
Viereck
Viereck - avatar
2 Answers
+ 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.
2nd Jun 2017, 9:47 PM
MassiveMayhem
0
qw
3rd Jun 2017, 9:22 AM
Pierce