Python Forum
Login and register code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Login and register code
#1
I have to make code that lets you create an account or log in and it must save the accounts to a text file, I have done the create account but its very badly done and don't have a clue how to do the login as I don't understand read files, thank you for any help




(Login code I wrote)
def reg():
    uname=input("Please a username: ")
    pword=input("Please a a passwrd: ")
    f = open("UNPW.txt", "a")
    f.write("\nUsername:"+uname)
    f.write("\nPasswod:"+pword)
    f.write("\n----------------------------")
Reply


Messages In This Thread
Login and register code - by Ameldan5 - Oct-11-2018, 09:10 AM
RE: Login and register code - by gruntfutuk - Oct-13-2018, 07:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Login/register system. Exploiterz 5 3,958 May-15-2018, 05:32 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020