oidc: do not notify login of ghost users
This commit is contained in:
@@ -747,7 +747,7 @@ async function notifyLoginLocation(user, ip, userAgent, auditSource) {
|
||||
assert.strictEqual(typeof userAgent, 'string');
|
||||
assert.strictEqual(typeof auditSource, 'object');
|
||||
|
||||
debug(`notifyLoginLocation: ${user.id} ${ip} ${userAgent}`);
|
||||
debug(`notifyLoginLocation: ${user.id} ${ip} ${userAgent} ghost:${!!user.ghost}`);
|
||||
|
||||
if (constants.DEMO) return;
|
||||
if (constants.TEST && ip === '127.0.0.1') return;
|
||||
|
||||
Reference in New Issue
Block a user