app.post('/validate', (req, res) => const email, key = req.body; License.findOne( email, key , (err, license) => ); );

// Assuming Mongoose model for License const License = mongoose.model('License', email: String, key: String, valid: Boolean );

const express = require('express'); const app = express(); const mongoose = require('mongoose');

Please wait downloading ...

Please wait detecting ...

We have sent an email to your email.
Please check your email, follow the instructions to verify your email address.