demo: do not send login notification
This commit is contained in:
@@ -611,6 +611,7 @@ async function notifyLoginLocation(user, ip, userAgent, auditSource) {
|
||||
|
||||
debug(`notifyLoginLocation: ${user.id} ${ip} ${userAgent}`);
|
||||
|
||||
if (settings.isDemo()) return;
|
||||
if (constants.TEST && ip === '127.0.0.1') return;
|
||||
|
||||
const response = await superagent.get('https://geolocation.cloudron.io/json').query({ ip }).ok(() => true);
|
||||
|
||||
Reference in New Issue
Block a user