mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-01-05 19:41:07 +00:00
Fix SAML auth error logging
As stated in https://github.com/node-saml/passport-saml/blob/master/CHANGELOG.md#v200-2020-11-03 and the corresponding PR https://github.com/node-saml/passport-saml/pull/412 passport-saml now always throws error objects instead of strings. This fixes our error logging to accommodate this change. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
2b3e6f7268
commit
4655e9c785
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ passport.use(new SamlStrategy({
|
|||
}
|
||||
}
|
||||
}).catch(function (err) {
|
||||
logger.error('saml auth failed: ' + err)
|
||||
logger.error('saml auth failed: ' + err.message)
|
||||
return done(err, null)
|
||||
})
|
||||
}))
|
||||
|
|
Loading…
Reference in a new issue