Debian Codegraph @

docs/common/configuration.rst

raw
1 Configuration
2 =============
3
4 Available settings:
5
6 ``ALLAUTH_DEFAULT_AUTO_FIELD``
7 Can be set to configure the primary key of all models. For
8 example: ``"hashid_field.HashidAutoField"``.
9
10 ``ALLAUTH_RATE_LIMIT_IPV6_PREFIX`` (default: ``64``)
11 For rate limiting purposes, IPv6 addresses are truncated to their network
12 prefix to prevent attackers from bypassing rate limits by rotating through
13 addresses within their allocated prefix. This setting controls the prefix
14 length. The default of 64 corresponds to a standard /64 subnet.
15
16 ``ALLAUTH_USER_CODE_FORMAT`` (default: ``{"numeric": False, "dashed": True, length: 8}``)
17 Controls the format of user-facing verification codes (e.g. email
18 verification, phone verification, login codes).