web-manager 3.1.43 → 3.1.45
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/account.js +9 -5
- package/package.json +1 -1
package/lib/account.js
CHANGED
@@ -334,12 +334,16 @@ Account.prototype._resolveAccount = function (firebaseUser, account, options) {
|
|
334
334
|
account.activity.geolocation.ip = account.activity.geolocation.ip || 'unknown';
|
335
335
|
account.activity.geolocation.continent = account.activity.geolocation.continent || 'unknown';
|
336
336
|
account.activity.geolocation.country = account.activity.geolocation.country || 'unknown';
|
337
|
+
account.activity.geolocation.region = account.activity.geolocation.region || 'unknown';
|
337
338
|
account.activity.geolocation.city = account.activity.geolocation.city || 'unknown';
|
338
|
-
account.activity.geolocation.latitude = account.activity.geolocation.latitude ||
|
339
|
-
account.activity.geolocation.longitude = account.activity.geolocation.longitude ||
|
340
|
-
|
341
|
-
account.activity.
|
342
|
-
account.activity.
|
339
|
+
account.activity.geolocation.latitude = account.activity.geolocation.latitude || 0;
|
340
|
+
account.activity.geolocation.longitude = account.activity.geolocation.longitude || 0;
|
341
|
+
|
342
|
+
account.activity.client = account.activity.client || {};
|
343
|
+
account.activity.client.userAgent = account.activity.client.userAgent || 'unknown';
|
344
|
+
account.activity.client.language = account.activity.client.language || 'unknown';
|
345
|
+
account.activity.client.platform = account.activity.client.platform || 'unknown';
|
346
|
+
account.activity.client.mobile = account.activity.client.mobile || null;
|
343
347
|
|
344
348
|
// Api
|
345
349
|
account.api = account.api || {};
|
package/package.json
CHANGED