Saturday 31 August 2019

User Login / Registration System without database?

I came up with the idea to make a User Login / Registration System with node.js by simply storing the users' information in a JavaScript file. When a user registers, node.js would edit that file to add their information with arrays - for example, it creates an array named with the person's username and that array holds the username (again), the password and the e-mail. And when a user logins, node.js would scan through that file for matches. As far as I know, JavaScript files can be hidden from the user but I still want some advice, is it safe? Are there more clever ways to do this (excluding databases)?

Submitted August 31, 2019 at 09:39PM by Plam3n04

No comments:

Post a Comment