Merge pull request #1138 from adlerweb/patch-1

docker-entrypoint.sh: clarify default token message
This commit is contained in:
Tobias Genannt 2024-02-22 08:18:27 +01:00 committed by GitHub
commit 4da3f75c14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,7 +87,7 @@ from users.models import Token
try:
old_default_token = Token.objects.get(key="0123456789abcdef0123456789abcdef01234567")
if old_default_token:
print("⚠️ Warning: You have the old default admin token in your database. This token is widely known; please remove it.")
print("⚠️ Warning: You have the old default admin API token in your database. This token is widely known; please remove it. Log in as your superuser and check API Tokens in your user menu.")
except Token.DoesNotExist:
pass
END