# Path: src/contrib/django_autologin/utils.py
# def get_user_salt(user):
#     return "".join(str(getattr(user, x)) for x in app_settings.SALT_FIELDS)


from django import template
from django.core.signing import TimestampSigner
from .. import app_settings
from ..utils import get_user_salt


register = template.Library()

@register.simple_tag
def automatic_login_token(user):
    token = TimestampSigner(

# Path: src/contrib/django_autologin/utils.py
# def get_user_salt(user):
#     return "".join(str(getattr(user, x)) for x in app_settings.SALT_FIELDS)


# Path: src/contrib/django_autologin/templatetags/django_autologin.py
from django import template
from django.core.signing import TimestampSigner
from .. import app_settings
from ..utils import get_user_salt



register = template.Library()

@register.simple_tag
def automatic_login_token(user):
    token = TimestampSigner(

        salt=get_user_salt(user),