-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLogi.py
More file actions
23 lines (19 loc) · 829 Bytes
/
Copy pathLogi.py
File metadata and controls
23 lines (19 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Login:
import collections
store=collections.namedtuple("userName" "userType","password")
def __init__(self,user,userName,userType,password):
self.userName=userName
self.userType=userType
self.password=password
self.user=user
if(self.user=="new"):
#details=store(self.userName,self.userType,self.password)
new=(self.userName,self.userType,self.password)
user=user+new
print("Register successfully")
def check(user,userName,userType,password):
else:
for i in user:
if(self.userName==user[0] and self.userType==user[1]and self.password==user[2]):
print("Login succesfully")
return True