mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-14 05:00:13 +02:00
Add a token prefix
This commit is contained in:
@@ -11,6 +11,7 @@ OBJECTPERMISSION_OBJECT_TYPES = Q(
|
||||
CONSTRAINT_TOKEN_USER = '$user'
|
||||
|
||||
# API tokens
|
||||
TOKEN_KEY_LENGTH = 16
|
||||
TOKEN_PREFIX = 'nbt_' # Used for v2 tokens only
|
||||
TOKEN_KEY_LENGTH = 12
|
||||
TOKEN_DEFAULT_LENGTH = 40
|
||||
TOKEN_CHARSET = string.ascii_letters + string.digits
|
||||
|
||||
Reference in New Issue
Block a user