feat(api): smtp flag for login

This commit is contained in:
Taha Yassine Kraiem 2021-12-20 13:19:25 +01:00
parent b0f9d84e81
commit 33bf9475b3
2 changed files with 6 additions and 2 deletions

View file

@ -54,7 +54,9 @@ def login(data: schemas.UserLoginSchema = Body(...)):
c["projects"] = projects.get_projects(tenant_id=tenant_id, recording_state=True, recorded=True,
stack_integrations=True, version=True)
c["smtp"] = helper.has_smtp()
c["iceServers"]: assist.get_ice_servers()
c["iceServers"] = assist.get_ice_servers()
r["smtp"] = c["smtp"]
r["iceServers"] = c["iceServers"]
return {
'jwt': r.pop('jwt'),
'data': {

View file

@ -54,7 +54,9 @@ def login(data: schemas.UserLoginSchema = Body(...)):
c["projects"] = projects.get_projects(tenant_id=tenant_id, recording_state=True, recorded=True,
stack_integrations=True, version=True)
c["smtp"] = helper.has_smtp()
c["iceServers"]: assist.get_ice_servers()
c["iceServers"] = assist.get_ice_servers()
r["smtp"] = c["smtp"]
r["iceServers"] = c["iceServers"]
return {
'jwt': r.pop('jwt'),
'data': {