From fd6aa3d1b1edc5cc47bfdc2b1a73d5a91c15d52d Mon Sep 17 00:00:00 2001 From: Robert Hurst Date: Fri, 10 Jan 2025 18:11:34 +0200 Subject: [PATCH] Fix missing assignment --- mod/user/saml.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mod/user/saml.js b/mod/user/saml.js index ec0a09b85..af5620628 100644 --- a/mod/user/saml.js +++ b/mod/user/saml.js @@ -299,9 +299,7 @@ async function logout(req, res) { // Get logout URL from IdP if session exists url = await samlStrat.getLogoutUrlAsync(user); } else { - - - return logoutCallback(res) + return logoutCallback(res); } res.redirect(url); @@ -373,8 +371,7 @@ async function acs(req, res) { const aclResponse = await aclLookUp(user.email); if (!aclResponse) { - - url = await samlStrat.getLogoutUrlAsync(user); + const url = await samlStrat.getLogoutUrlAsync(user); // Login with non exist SAML user will destroy session and return login. return res.redirect(url);