SHARE
TWEET

Untitled

a guest Jun 16th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MongoClient.connect(url, function(err, db) {
  2.   if (err) throw err;
  3.   var dbo = db.db("project");
  4.  
  5.   dbo.collection("Register").findOne({Email:  req.body.email} , function(err, result) {
  6.   if (result.Password == req.body.psw) {
  7.       console.log("Correct go next page");
  8.     }
  9.     else{
  10.       window.alert("sometext");
  11.     });
  12.     db.close();
  13.   });
  14. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top