[twitter] revert generated CSRF token length to 32 characters (#6895)

revert d9c4fcc7fa
This commit is contained in:
Mike Fährmann
2025-01-30 19:12:29 +01:00
parent ba9e4795cd
commit 64dc655ed6
2 changed files with 2 additions and 2 deletions

View File

@@ -1065,7 +1065,7 @@ class TwitterAPI():
else:
csrf_token = None
if not csrf_token:
csrf_token = util.generate_token(80)
csrf_token = util.generate_token()
cookies.set("ct0", csrf_token, domain=cookies_domain)
auth_token = cookies.get("auth_token", domain=cookies_domain)

View File

@@ -6,5 +6,5 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.28.5"
__version__ = "1.29.0-dev"
__variant__ = None