Skip to content

Commit

Permalink
ALways return after redirect when logging out
Browse files Browse the repository at this point in the history
  • Loading branch information
Herbert Vojčík committed Sep 17, 2013
1 parent 8264c33 commit 3ba0158
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/passport-saml/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,8 @@ Strategy.prototype.authenticate = function (req, options) {
}

if (loggedOut) {
if (self._saml.options.logoutRedirect) {
self.redirect(self._saml.options.logoutRedirect);
return;
} else {
self.redirect("/");
}

self.redirect(self._saml.options.logoutRedirect || "/");
return;
}

var verified = function (err, user, info) {
Expand Down

0 comments on commit 3ba0158

Please sign in to comment.