forked from soris2000/Realtime-Chat-App
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathusers_db.py
More file actions
24 lines (17 loc) · 844 Bytes
/
Copy pathusers_db.py
File metadata and controls
24 lines (17 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# class UsersDB():
# users_list = [{"user": "Sakthi", "password": "sakthi",
# "mobile": '044-45985645'}, {"user": "prakash", "password": "prakash", "mobile": '85497826352'}]
# def read_db(self, user_name: str, password: str):
# for i in self.users_list:
# if (i["user"] == user_name and i["password"] == password):
# return True
# return False
# def write_db(self, user_name: str, password: str, mobile: str):
# self.users_list.append(
# {"user": user_name, "password": password, "mobile": mobile})
# return True
# def getNumber(self, user):
# for i in self.users_list:
# if i["user"] == user:
# return i["mobile"]
#DEPRICATED, REFER YOUR FIREBASE FOR USER DATA