Skip to content

Commit

Permalink
docker-entrypoint.sh: clarify default token message
Browse files Browse the repository at this point in the history
When a default admin API token is found, a warning is displayed. As it is only called "token", some users might not know what token is referred to. Also the message should give a hint or link to a documentation on how to remove it.
  • Loading branch information
adlerweb authored and tobiasge committed Feb 22, 2024
1 parent 46edaa1 commit 607ccd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 607ccd1

Please sign in to comment.