fix: enforce VK callback secret limit
This commit is contained in:
1 parent
e0e1e4f6bd
commit
7ed89d2a55
6 files changed
+17
-1
No files matched your search
@@ -973,6 +973,8 @@ class BelkiBot:
|
||||
"""Run the Callback API listener, notifications and scheduler."""
|
||||
if not callback_secret:
|
||||
raise RuntimeError("VK_CALLBACK_SECRET is required")
|
||||
if len(callback_secret) > 50:
|
||||
raise RuntimeError("VK_CALLBACK_SECRET must be at most 50 characters")
|
||||
if not callback_confirmation:
|
||||
raise RuntimeError("VK_CALLBACK_CONFIRMATION is required")
|
||||
|
||||
|
||||
Reference in new issue
Block a user