Properly detect new user agents and location
This commit is contained in:
@@ -142,9 +142,12 @@ function sendInvite(user, invitor, inviteLink) {
|
||||
});
|
||||
}
|
||||
|
||||
function sendNewLoginLocation(user, newLocation) {
|
||||
function sendNewLoginLocation(user, ip, userAgent, country, city) {
|
||||
assert.strictEqual(typeof user, 'object');
|
||||
assert.strictEqual(typeof newLocation, 'string');
|
||||
assert.strictEqual(typeof ip, 'string');
|
||||
assert.strictEqual(typeof userAgent, 'string');
|
||||
assert.strictEqual(typeof country, 'string');
|
||||
assert.strictEqual(typeof city, 'string');
|
||||
|
||||
debug('Sending new login location mail');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user