mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 16:23:44 -04:00
Add a service that will be used to send Notify's messages.
Including sms code, email verification, invitation emails, and password reset emails Added the service id and template ids to config. Small change to dao_create_service to use id if set.
This commit is contained in:
@@ -47,6 +47,8 @@ def dao_create_service(service, user):
|
||||
from app.dao.permissions_dao import permission_dao
|
||||
service.users.append(user)
|
||||
permission_dao.add_default_service_permissions_for_user(user, service)
|
||||
if not service.id:
|
||||
service.id = uuid.uuid4() # must be set now so version history model can use same id
|
||||
service.id = uuid.uuid4() # must be set now so version history model can use same id
|
||||
service.research_mode = False
|
||||
db.session.add(service)
|
||||
|
||||
Reference in New Issue
Block a user