mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 16:22:17 -05:00
merge from main
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user