Junaidb commited on
Commit
b5d141c
·
verified ·
1 Parent(s): badf3bc

Update databaseengine.py

Browse files
Files changed (1) hide show
  1. 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