Skip to content

Instantly share code, notes, and snippets.

@perezpaya
Created September 29, 2012 11:50
Show Gist options
  • Save perezpaya/3803779 to your computer and use it in GitHub Desktop.
Save perezpaya/3803779 to your computer and use it in GitHub Desktop.
Login Gist
function checkLogin (req, res, next){
if(req.session){
if(req.session.email && req.session.password){
User.findOne({email: req.session.email}, function (err, docs){
if(err){
res.render('err.jade');
} else if (docs){
if(docs.password == req.session.password){
next();
} else{
res.redirect('/login');
}
} else{
res.redirect('/login');
}
});
} else{
res.redirect('/login');
}
} else{
res.redirect('/login');
}
}
@heydrmmmdli47-sudo
Copy link

#EXTM3U

############### AZƏRBAYCAN ###############
#EXTINF:-1 group-title="Azərbaycan" tvg-country="AZ",AzTV
https://iptv-org.github.io/iptv/countries/az.m3u

############### TÜRKİYƏ ###############
#EXTINF:-1 group-title="Türkiyə" tvg-country="TR",TR Kanalları
https://iptv-org.github.io/iptv/countries/tr.m3u

############### RUSİYA ###############
#EXTINF:-1 group-title="Rusiya" tvg-country="RU",RU Kanalları
https://iptv-org.github.io/iptv/countries/ru.m3u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment