Ask coding questions

← Back to all posts
Tambertale Site Login
VixCoder (0)

How do I make a password/username checker for the html labeled: "Login.html" I also want to make it so that it will cross check it with pairs of password/username I am going to have (A max of 5 pairs). The main problem is I am not sure how to do the java script or how to cross it with the HTML

Answered by Baconman321 (1060) [earned 5 cycles]
View Answer
Comments
hotnewtop
Baconman321 (1060)

JavaScript has no privacy whatsoever, as it is executed on the client (the user's computer) meaning that they can see the passwords and/or access the variables holding them. You would have to create a server that stores the passwords and send the attempt to the server where it verifies (or rejects) the attempted username/password.

I would recommend NodeJS because it is the same syntax as JavaScript but with different methods. It is also widely used on replit so you are pretty much guaranteed to get help if you ask a question here.

VixCoder (0)

@Baconman321 ok thank you. Also is it possible to transfer all of my site code over then do the Nodejs? or do i need to completely rewrite the code?

Baconman321 (1060)

@VixCoder You could download the project as a ZIP file, then extract the files onto your computer and upload them to your nodejs project again. You could also make files with the same name in your nodejs project and then copy-paste the corresponding code.