|
|
@ -140,7 +140,7 @@ class AuthController extends SiteController { |
|
|
|
|
|
|
|
async postLogin (req, res, next) { |
|
|
|
const redirectUri = req.session.loginReturnTo || '/'; |
|
|
|
this.log.debug('starting passport.authenticate', { session: req.session, redirectUri }); |
|
|
|
this.log.debug('starting passport.authenticate', { redirectUri }); |
|
|
|
passport.authenticate('dtp-local', (error, user/*, info*/) => { |
|
|
|
if (error) { |
|
|
|
req.session.loginResult = error.toString(); |
|
|
|