Skip to content

Commit

Permalink
Fix missing assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
RobAndrewHurst committed Jan 10, 2025
1 parent d437e0a commit fd6aa3d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mod/user/saml.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fd6aa3d

Please sign in to comment.