Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- router.get('/', function(req, res, next) {
- res.render('login', { //the login page
- title: 'login'
- });
- });
- router.post('/', function(req, res, next) {
- */
- I authenticate the username and password with an active directory server
- /*
- client.bind(username, password, function(err) {
- client.unbind();
- if (err) {
- res.status(500).send();
- } else {
- res.render('home', { //the home page
- title: 'home'
- });
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement