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:
Rebecca Law
2016-06-02 11:12:01 +01:00
parent af89f86389
commit 4910483f39
3 changed files with 128 additions and 1 deletions

View File

@@ -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)