mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-03-01 18:35:09 +08:00
do not check authversion for non-users
This commit is contained in:
parent
23e3e27c65
commit
9ef4f8f229
1 changed files with 1 additions and 1 deletions
2
api.js
2
api.js
|
@ -326,7 +326,7 @@ server.use(
|
|||
{ projection: { authVersion: true } }
|
||||
);
|
||||
let userAuthVersion = Number(userData && userData.authVersion) || 0;
|
||||
if (!userData || tokenAuthVersion < userAuthVersion) {
|
||||
if (userData && tokenAuthVersion < userAuthVersion) {
|
||||
// unknown user or expired session
|
||||
try {
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue