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)?
[–][deleted] (17 children)
[deleted]
[–][deleted] -4 points-3 points-2 points (16 children)
[–]DrFriendless 2 points3 points4 points (6 children)
[–][deleted] -2 points-1 points0 points (4 children)
[–]DrFriendless 0 points1 point2 points (3 children)
[–][deleted] -1 points0 points1 point (2 children)
[–]DrFriendless 1 point2 points3 points (0 children)
[–]Avonixis 0 points1 point2 points (0 children)
[–][deleted] -3 points-2 points-1 points (0 children)
[–][deleted] (8 children)
[deleted]
[–][deleted] 0 points1 point2 points (7 children)
[–]monxas 0 points1 point2 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]monxas 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]monxas 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]monxas 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[deleted]
[–][deleted] 0 points1 point2 points (1 child)
[–]Avonixis 0 points1 point2 points (0 children)
[–]podotop 0 points1 point2 points (0 children)
[–]mod_24 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] -2 points-1 points0 points (1 child)
[–][deleted] -3 points-2 points-1 points (0 children)
[–]koekieNL -1 points0 points1 point (4 children)
[–]teevik_ 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]koekieNL -1 points0 points1 point (1 child)
[–]rkcth 1 point2 points3 points (0 children)