merge from main

This commit is contained in:
Kenneth Kehl
2024-08-28 11:57:51 -07:00
10 changed files with 48 additions and 16 deletions

View File

@@ -1070,4 +1070,14 @@ def add_test_users_to_db(generate, state, admin):
state=state,
platform_admin=admin,
)
current_app.logger.info(f"{num} {user.email_address} created")
current_app.logger.info("User created")
# generate a new salt value
@notify_command(name="generate-salt")
def generate_salt():
if getenv("NOTIFY_ENVIRONMENT", "") not in ["development", "test"]:
current_app.logger.error("Can only be run in development")
return
salt = secrets.token_hex(16)
print(salt) # noqa