From 728a18b763898043b4d8351acc73d89cecaf3258 Mon Sep 17 00:00:00 2001 From: Adarnof Date: Tue, 1 Dec 2015 00:37:54 +0000 Subject: [PATCH] Corrected default invite parameters to increase security: 5 minute lifetime, 1 use. --- services/managers/discord_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/managers/discord_manager.py b/services/managers/discord_manager.py index 0851703c..f1318536 100644 --- a/services/managers/discord_manager.py +++ b/services/managers/discord_manager.py @@ -124,12 +124,12 @@ class DiscordAPIManager: return r.json() @staticmethod - def create_invite(server_id, max_age=0, max_users=1, temporary=True, xkcdpass=False): + def create_invite(server_id, max_age=600, max_uses=1, temporary=True, xkcdpass=False): custom_headers = {'authorization': DiscordAPIManager.get_auth_token()} path = DISCORD_URL + "/channels/" + str(server_id) + "/invites" data = { 'max_age': max_age, - 'max_users': max_users, + 'max_uses': max_uses, 'temporary': temporary, 'xkcdpass': xkcdpass, }