MCPcopy
hub / github.com/geekcomputers/Python / login

Function login

bookstore_manangement_system.py:43–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def login():
44 user_name = input(" USER NAME --- ")
45 passw = input(" PASSWORD --- ")
46
47 display = "select * from login"
48 mycur.execute(display)
49 data2 = mycur.fetchall()
50
51 for y in data2:
52 if y[1] == user_name and y[2] == passw:
53 pass
54
55 else:
56 separator()
57
58 print(" Username or Password is Incorrect Try Again")
59
60 separator()
61
62 user_name = input(" USER NAME --- ")
63 passw = input(" PASSWORD --- ")
64
65 if y[1] == user_name and y[2] == passw:
66 pass
67
68 else:
69 separator()
70
71 print(" Username or Password is Again Incorrect")
72 exit()
73
74
75def ViewAll():

Callers 1

Calls 2

separatorFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected