Spaces:
Running
Running
Update databaseengine.py
Browse files- databaseengine.py +8 -0
databaseengine.py
CHANGED
@@ -21,3 +21,11 @@ class DatabaseEngine():
|
|
21 |
return result
|
22 |
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
return result
|
22 |
|
23 |
|
24 |
+
def Login(self,data):
|
25 |
+
|
26 |
+
collection=db.get_collection(coll)
|
27 |
+
result =collection.find_one({"username":data["username"],"password":data["password"]})
|
28 |
+
if result is not None:
|
29 |
+
return True
|
30 |
+
else:
|
31 |
+
return False
|