Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. router.get('/', function(req, res, next) {
  2. res.render('login', { //the login page
  3. title: 'login'
  4. });
  5. });
  6.  
  7. router.post('/', function(req, res, next) {
  8.  
  9. */
  10. I authenticate the username and password with an active directory server
  11. /*
  12.  
  13. client.bind(username, password, function(err) {
  14. client.unbind();
  15. if (err) {
  16. res.status(500).send();
  17. } else {
  18. res.render('home', { //the home page
  19. title: 'home'
  20. });
  21. }
  22. });
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement