Add advice when forgetting to set VPN on
This commit is contained in:
parent
8f14819c22
commit
54957fcbed
@ -20,9 +20,12 @@ for user in api.mattermost(ENDPOINTS["mattermost"]):
|
|||||||
if "is_bot" not in user:
|
if "is_bot" not in user:
|
||||||
emails.append(user["email"])
|
emails.append(user["email"])
|
||||||
|
|
||||||
|
try:
|
||||||
for user in api.mailcow(ENDPOINTS["mailcow"]):
|
for user in api.mailcow(ENDPOINTS["mailcow"]):
|
||||||
if user["username"] not in os.environ["EXCLUDED_EMAILS"]:
|
if user["username"] not in os.environ["EXCLUDED_EMAILS"]:
|
||||||
emails.append(user["username"])
|
emails.append(user["username"])
|
||||||
|
except TypeError:
|
||||||
|
print("Mailcow : What is your IP address ?")
|
||||||
|
|
||||||
for user in api.nextcloud(ENDPOINTS["nextcloud"])["ocs"]["data"]["users"]:
|
for user in api.nextcloud(ENDPOINTS["nextcloud"])["ocs"]["data"]["users"]:
|
||||||
emails.append(api.nextcloud(ENDPOINTS["nextcloud"] + '/' + user)["ocs"]["data"]["email"])
|
emails.append(api.nextcloud(ENDPOINTS["nextcloud"] + '/' + user)["ocs"]["data"]["email"])
|
||||||
|
Loading…
Reference in New Issue
Block a user