mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
Remove logging of configured username and password
This commit is contained in:
parent
11d473e536
commit
44a94157be
1 changed files with 1 additions and 1 deletions
|
@ -425,7 +425,7 @@ def init(force: bool=False, quick: bool=False, setup: bool=False, out_dir: Path=
|
||||||
print('{green}[√] Done. Verified and updated the existing ArchiveBox collection.{reset}'.format(**ANSI))
|
print('{green}[√] Done. Verified and updated the existing ArchiveBox collection.{reset}'.format(**ANSI))
|
||||||
else:
|
else:
|
||||||
if ARCHIVEBOX_USERNAME and ARCHIVEBOX_PASSWORD:
|
if ARCHIVEBOX_USERNAME and ARCHIVEBOX_PASSWORD:
|
||||||
print('{green}[+] ARCHIVEBOX_USERNAME and ARCHIVEBOX_PASSWORD configuration options found. Creating new admin user with username {} and password {}.{reset}'.format(ARCHIVEBOX_USERNAME, ARCHIVEBOX_PASSWORD, **ANSI))
|
print('{green}[+] ARCHIVEBOX_USERNAME and ARCHIVEBOX_PASSWORD configuration options found. Creating new admin user.{reset}'.format(**ANSI))
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
User.objects.create_superuser(username=ARCHIVEBOX_USERNAME, password=ARCHIVEBOX_PASSWORD)
|
User.objects.create_superuser(username=ARCHIVEBOX_USERNAME, password=ARCHIVEBOX_PASSWORD)
|
||||||
# if config.HTTP_USER and config.HTTP_PASS:
|
# if config.HTTP_USER and config.HTTP_PASS:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue