fuck me i left in some debug code

This commit is contained in:
Evert Prants 2017-09-07 00:51:29 +03:00
parent 05588560a6
commit 7a81bb82eb
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 0 additions and 2 deletions

View File

@ -39,7 +39,6 @@ function setSession (req, user) {
function redirectLogin (req, res) {
let uri = '/'
console.log(req.session.redirectUri, req.session.csrf)
if (req.session.redirectUri) {
uri = req.session.redirectUri
delete req.session.redirectUri

View File

@ -20,7 +20,6 @@ router.use(oauthLimiter)
function ensureLoggedIn (req, res, next) {
if (req.session.user) return next()
req.session.redirectUri = req.originalUrl
console.log('set return uri', req.session.redirectUri, req.session.csrf)
res.redirect('/login')
}