-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPasskey.py
67 lines (61 loc) · 1.58 KB
/
Passkey.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import time
Username = ""
Password = ""
UsernameGuess = ""
PasswordGuess = ""
AlreadyAccount = ""
def createaccount():
global Username
global Password
Username = input("Please create a username, or input 'Back' to go back.")
if Username == "Back":
AlrAcc()
else:
#Save Username
Password = input("Please create a password, or input 'Back' to go back.")
if Password == "Back":
AlrAcc()
else:
#Save Password, attach to username
time.sleep(3)
AlrAcc()
def signintoaccount():
global Username
global Password
global UsernameGuess
global PasswordGuess
UsernameGuess = input("Please input your username, or input 'Back' to go back.")
if UsernameGuess == "Back":
AlrAcc()
else:
PasswordGuess = input("Please input your password, or input 'Back' to go back.")
if Password == "Back":
AlrAcc()
else:
#Check Database
if UsernameGuess == Username and PasswordGuess == Password:
Finish()
time.sleep(3)
else:
print("Incorrect username or password. Please try again.")
time.sleep(3)
signintoaccount()
def AlrAcc():
AlreadyAccount = input("Do you already have an account? Input Y for yes and N for no.")
if AlreadyAccount == "Y":
signintoaccount()
elif AlreadyAccount == "N":
createaccount()
else:
print("Please make sure you inputted Y or N.")
time.sleep(3)
AlrAcc()
def Finish():
print("Welcome...")
time.sleep(3)
import Notes
if Username == "" and Password == "":
AlrAcc()
else:
signintoaccount()
AlrAcc()