()
| 41 | |
| 42 | |
| 43 | def 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 | |
| 75 | def ViewAll(): |
no test coverage detected