mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-27 18:31:06 +08:00
Fix broken accessToken check
This commit is contained in:
parent
2ac49daaee
commit
fdc9af2a89
1 changed files with 5 additions and 0 deletions
5
api.js
5
api.js
|
@ -175,6 +175,11 @@ server.use(
|
|||
delete req.query.accessToken;
|
||||
}
|
||||
|
||||
if (req.params.accessToken) {
|
||||
// delete or it will conflict with Joi schemes
|
||||
delete req.params.accessToken;
|
||||
}
|
||||
|
||||
if (req.headers['x-access-token']) {
|
||||
req.headers['x-access-token'] = '';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue