feat(api): fixed login response
This commit is contained in:
parent
239ca9018f
commit
02e4da7bf9
1 changed files with 5 additions and 5 deletions
|
|
@ -37,14 +37,14 @@ def login():
|
|||
tenant_id = r.pop("tenantId")
|
||||
# change this in open-source
|
||||
r = {**r,
|
||||
"limits", {
|
||||
"limits": {
|
||||
"teamMember": int(environ.get("numberOfSeats", 0)),
|
||||
"projects": -1,
|
||||
"metadata": metadata.get_remaining_metadata_with_count(tenant_id)},
|
||||
** license.get_status(context["tenantId"]),
|
||||
"smtp": environ["EMAIL_HOST"] is not None and len(environ["EMAIL_HOST"]) > 0,
|
||||
"saml2": SAML2_helper.is_saml2_available(),
|
||||
"iceServers": assist.get_ice_servers()
|
||||
**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()
|
||||
}
|
||||
c = tenants.get_by_tenant_id(tenant_id)
|
||||
c.pop("createdAt")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue