How do I make this work how I want it?
I am trying to make a login thing in python and I'm using json to store the logins and passwords(I know not the best way to store it safely) and I cant get it to work, It changes the file but doesnt add the new user to it. Thanks in advance!
Nope, you shouldn't be using .json or.txt. It is the worst way to save data. You should use a database. As you are on replit, use their database. It is very simple and uses key-value pairs. To create a password and username into the database use this code:
If you want to get the username and pas from users:
NEVER save data in a json file. One command in the shell and bai bai to all your data. Hope I helped.