demo: do not send login notification

This commit is contained in:
Girish Ramakrishnan
2021-09-23 09:13:07 -07:00
parent 6fbf7890cc
commit 1aa96f7f76

View File

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