mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-21 19:18:44 -06:00
Enforce a fixed key length for v2 tokens
This commit is contained in:
@@ -10,4 +10,7 @@ OBJECTPERMISSION_OBJECT_TYPES = Q(
|
||||
|
||||
CONSTRAINT_TOKEN_USER = '$user'
|
||||
|
||||
# API tokens
|
||||
TOKEN_KEY_LENGTH = 16
|
||||
TOKEN_DEFAULT_LENGTH = 40
|
||||
TOKEN_CHARSET = string.ascii_letters + string.digits
|
||||
|
||||
Reference in New Issue
Block a user