Skip to content

Commit

Permalink
Remove req.method which might not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
compwright committed Jun 6, 2018
1 parent 0574afd commit 45a1b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/passport-wsfed-saml2/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ WsFedSaml2Strategy.prototype.authenticate = function (req, opts) {
}

function executeSamlp(req) {
if (req.body && req.method === 'POST' && req.body.SAMLResponse) {
if (req.body && req.body.SAMLResponse) {
// We have a response, get the user identity out of it
var loaded = function (err, ok, state) {
if (err) { return self.error(err); }
Expand Down

0 comments on commit 45a1b2a

Please sign in to comment.