From 917fb28c8954d66a85e0346a3c8bf730e8994eab Mon Sep 17 00:00:00 2001 From: garrettmills Date: Sun, 23 Aug 2020 14:50:00 -0500 Subject: [PATCH] Flitter-auth logout should call central logout method --- app/controllers/auth/Forms.controller.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/auth/Forms.controller.js b/app/controllers/auth/Forms.controller.js index 7aaca2d..8cefb83 100644 --- a/app/controllers/auth/Forms.controller.js +++ b/app/controllers/auth/Forms.controller.js @@ -33,6 +33,11 @@ class Forms extends FormController { next_destination: '/', }) } + + async logout_provider_clean_session(req, res, next) { + await req.user.logout(req) + return next() + } } module.exports = exports = Forms