mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 14:42:24 -05:00
Added name to api key when creating key for admin user.
NOTE: this will change in the next PR
This commit is contained in:
@@ -41,7 +41,7 @@ def create_admin_user_service():
|
||||
'active': True,
|
||||
'restricted': True})
|
||||
services_dao.save_model_service(service)
|
||||
api_key = ApiKey(**{'service_id': service.id})
|
||||
api_key = ApiKey(**{'service_id': service.id, 'name': 'Admin API KEY (temporary)'})
|
||||
api_key_dao.save_model_api_key(api_key)
|
||||
print('ApiKey: {}'.format(api_key_dao.get_unsigned_secret(service.id)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user