mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Merge pull request +9831 from c9/remove-test-users-tracking
Remove test users from event tracking
This commit is contained in:
commit
e1bbf4d129
15
node_modules/c9/has-internal-domain.js
generated
vendored
Normal file
15
node_modules/c9/has-internal-domain.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
var _ = require("lodash");
|
||||
|
||||
|
||||
var internalDomain = ['c9.io', 'clou9beta.com'];
|
||||
|
||||
function hasInternalDomain(email) {
|
||||
if (!email) return false;
|
||||
|
||||
var emailElements = email.split("@");
|
||||
var emailDomain = emailElements[emailElements.length - 1];
|
||||
|
||||
return _.contains(internalDomain, emailDomain);
|
||||
}
|
||||
|
||||
module.exports = hasInternalDomain;
|
||||
Loading…
x
Reference in New Issue
Block a user