-
Notifications
You must be signed in to change notification settings - Fork 0
/
authenticate.py
40 lines (32 loc) · 1.3 KB
/
authenticate.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
# Authentication File
import os
import getpass
# Clear the screen to simulate program is starting
os.system('clear')
# Welcome
print('\n' * 10 + ' ' * 62 + ' Welcome to A Heart Filled With Love')
# User Authentication
firstName = input('\n\n\n\n' + ' ' * 66 + "Please enter your name:\n\n" + ' ' * 78)
if (firstName == 'Ayman'):
exname = input('\n\n' + ' ' * 66 + "Please enter your EX name:\n\n" + ' ' * 77)
if (exname == '????'):
# getpass used to keep password characters private while typing
pin = getpass.getpass('\n\n' + ' ' * 69 + "Please enter your PIN:\n\n" + ' ' * 78)
if (pin == '1351'):
# Start separate file for main program
import valentine
else:
print('\n' * 4 + ' ' * 73 + 'Access Denided!')
print('\n\n' + ' ' * 68 + 'A Heart Filled With Love')
print('\n\n' + ' ' * 73 + 'Copyright 2017')
print('\n' * 4)
else:
print('\n' * 4 + ' ' * 73 + 'Access Denided!')
print('\n\n' + ' ' * 68 + 'A Heart Filled With Love')
print('\n\n' + ' ' * 73 + 'Copyright 2017')
print('\n' * 4)
else:
print('\n' * 4 + ' ' * 73 + 'Access Denided!')
print('\n\n' + ' ' * 68 + 'A Heart Filled With Love')
print('\n\n' + ' ' * 73 + 'Copyright 2017')
print('\n' * 4)