Python Forum
Login/register system.
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Login/register system.
#1
Hello! I'm quite new to python and I was wondering if there was any way to make a somewhat simple register/login system where the information get's stored in a text file (doesn't have to be encrypted,) and users are able to login/register usernames and passwords. Smile Smile Smile
Reply
#2
This sounds like a school assignment/homework... is that the case?
and the answer to your questions yes, there is a way to make a somewhat simple register/login system where the information get's stored in a text file (doesn't have to be encrypted,) and users are able to login/register usernames and passwords
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
Yes, that is the case, I'm in the 8th year (or 9th? grade for you Americans.)
It's not homework, it's (the beginning to) a piece of work that has been set to me and a friend, since we're top students in our computer science class. I was trying to ask for help on the topic by someone writing out the code and explaining to me what each line does.
Reply
#4
Unfortunately this is not how it works. We are glad to help/steer you in the right direction, however we are not going to write the code for you. You will need to put some effort, write [some] code and ask questions. Post your code in python tags, full traceback if you get any, in error tags.
Basically you need to learn:
* how to read/write from file
* create some sort of menu - take user input and eventually reject if it is not what expect (validate the input)
* you may use some sort of data structure to hold the data from the file in memory while working with them

Now I will move this thread to Homework section of the forum and we can continue the discussion there.
by the way using [some sort of] simple text file is one option. you may want to use also sqlite if you want proper database
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#5
Thank you for your help.
Reply
#6
sqlite3 to keep the user data.
A simple system/menu to create, delete, change and query the database records. Hashing the passwords.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Login system cardozo6060 2 2,620 Jun-07-2019, 10:44 PM
Last Post: cardozo6060
  Login and register code Ameldan5 1 2,463 Oct-13-2018, 07:48 PM
Last Post: gruntfutuk
  User sign up and login system tesilstudent112 1 5,077 Oct-22-2017, 10:14 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

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