feat(api): changed login response

This commit is contained in:
Taha Yassine Kraiem 2021-12-05 23:06:02 +01:00
parent f11d41ce91
commit d9dcdf68d5

View file

@ -41,7 +41,7 @@ def login():
"teamMember": int(environ.get("numberOfSeats", 0)),
"projects": -1,
"metadata": metadata.get_remaining_metadata_with_count(tenant_id)},
# **license.get_status(tenant_id),
**license.get_status(tenant_id),
"smtp": environ["EMAIL_HOST"] is not None and len(environ["EMAIL_HOST"]) > 0,
"saml2": SAML2_helper.is_saml2_available(),
"iceServers": assist.get_ice_servers()
@ -54,8 +54,7 @@ def login():
'jwt': r.pop('jwt'),
'data': {
"user": r,
"client": c,
**license.get_status(tenant_id),
"client": c
}
}