Skip to content

Commit bf94e60

Browse files
committed
docs: update comments
1 parent 3dc03cd commit bf94e60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

library.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ plugin.addMiddleware = async function (req, res, next) {
441441
((plugin.settings.behaviour === 'revalidate' || plugin.settings.behaviour === 'update') && hasLoginLock) ||
442442
req.originalUrl.startsWith(nconf.get('relative_path') + '/api') // api routes
443443
) {
444-
// Let requests through under "revalidate" behaviour only if they're logging in for the first time
445-
delete req.session.loginLock; // remove login lock for "revalidate" logins
444+
// Let requests through under "update" or "revalidate" behaviour only if they're logging in for the first time
445+
delete req.session.loginLock; // remove login lock for "update" or "revalidate" logins
446446

447447
return next();
448448
}

0 commit comments

Comments
 (0)