Add info note to default creds file

This commit is contained in:
amcmanu3 2024-05-18 20:32:27 -04:00
parent 860b9aa5d1
commit f845f54654

10
main.py
View File

@ -367,7 +367,15 @@ if __name__ == "__main__":
encoding="utf-8", encoding="utf-8",
) as cred_file: ) as cred_file:
cred_file.write( cred_file.write(
json.dumps({"username": "admin", "password": PASSWORD}, indent=4) json.dumps(
{
"username": "admin",
"password": PASSWORD,
"info": "This is NOT where you change your password."
" This file is only a means to give you a default password.",
},
indent=4,
)
) )
os.chmod( os.chmod(
os.path.join(APPLICATION_PATH, "app", "config", "default-creds.txt"), 0o600 os.path.join(APPLICATION_PATH, "app", "config", "default-creds.txt"), 0o600