OP 03 November, 2020 - 03:45 PM
Okay so I want to make it so when you open the file like python filename,py you have to type in a login and the logins would be stored on pastebin in the raw data tab. i have something kinda like it for reading a login in a csv file i'll post that code here too for all who needs it.
LOGIN I MADE WITH CSV FILE
#login system codded by @Dark_angel_luaaa aka Luna Baby Aka knockoutgas
#Don't rip my code please leave credit!
import csv
login = False
answer = input("Do you have an account?(yes or no) ")
if answer == 'yes' :
with open('/Users/knockoutgas/Desktop/Code/login.csv', 'r') as csvfile:
csv_reader = csv.reader(csvfile)
username = input("Username: ")
password = input("Password: ")
for row in csv_reader:
print(row[0], row[1])
print(username, password)
if row[0]== username and row[1] == password:
login = True
break
else:
login = False
break
if login == True:
print("You are now logged in!")
else:
print("Incorrect Login.")
exit()
else:
print('Only Valid Usernames allowed')
exit()
I'd like to do something like that except the login is stored in a paste on pastebin
any help guys?
LOGIN I MADE WITH CSV FILE
#login system codded by @Dark_angel_luaaa aka Luna Baby Aka knockoutgas
#Don't rip my code please leave credit!
import csv
login = False
answer = input("Do you have an account?(yes or no) ")
if answer == 'yes' :
with open('/Users/knockoutgas/Desktop/Code/login.csv', 'r') as csvfile:
csv_reader = csv.reader(csvfile)
username = input("Username: ")
password = input("Password: ")
for row in csv_reader:
print(row[0], row[1])
print(username, password)
if row[0]== username and row[1] == password:
login = True
break
else:
login = False
break
if login == True:
print("You are now logged in!")
else:
print("Incorrect Login.")
exit()
else:
print('Only Valid Usernames allowed')
exit()
I'd like to do something like that except the login is stored in a paste on pastebin
any help guys?
![[Image: service.gif]](https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fcdn.discordapp.com%2Fattachments%2F758388245591228437%2F772329025486061578%2Fservice.gif)
![[Image: Amusing.png]](https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fstatic.cracked.sh%2F%2Fimages%2Fsmilies%2FAmusing.png)