Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MongoClient.connect(url, function(err, db) {
- if (err) throw err;
- var dbo = db.db("project");
- dbo.collection("Register").findOne({Email: req.body.email} , function(err, result) {
- if (result.Password == req.body.psw) {
- console.log("Correct go next page");
- }
- else{
- window.alert("sometext");
- });
- db.close();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement