oidc: do not notify login of ghost users

This commit is contained in:
Girish Ramakrishnan
2025-06-11 23:38:32 +02:00
parent d24189e8aa
commit f48231e309
3 changed files with 62 additions and 79 deletions

View File

@@ -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;