summaryrefslogtreecommitdiffstats
path: root/utils/license.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-03-06 20:36:20 -0500
committerCorey Hulen <corey@hulen.com>2017-03-06 20:36:20 -0500
commitf8aaf312c119d92ed0d9949e4315a4a1b1035e5f (patch)
tree0ddc03db788a632ae157f69390544949b7428bb5 /utils/license.go
parent3f070fe4b805e660cf796a5f851a0a1121a45fac (diff)
downloadchat-f8aaf312c119d92ed0d9949e4315a4a1b1035e5f.tar.gz
chat-f8aaf312c119d92ed0d9949e4315a4a1b1035e5f.tar.bz2
chat-f8aaf312c119d92ed0d9949e4315a4a1b1035e5f.zip
PLT-5703 Update license expiry timing and text (#5602)
* Update license expiry timing and text * Updating error bar (#5632)
Diffstat (limited to 'utils/license.go')
-rw-r--r--utils/license.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/license.go b/utils/license.go
index 2c43db6dd..5ec94386d 100644
--- a/utils/license.go
+++ b/utils/license.go
@@ -118,6 +118,7 @@ func getClientLicense(l *model.License) map[string]string {
props["IsLicensed"] = strconv.FormatBool(IsLicensed)
if IsLicensed {
+ props["Id"] = l.Id
props["Users"] = strconv.Itoa(*l.Features.Users)
props["LDAP"] = strconv.FormatBool(*l.Features.LDAP)
props["MFA"] = strconv.FormatBool(*l.Features.MFA)
@@ -166,6 +167,7 @@ func GetSanitizedClientLicense() map[string]string {
}
if IsLicensed {
+ delete(sanitizedLicense, "Id")
delete(sanitizedLicense, "Name")
delete(sanitizedLicense, "Email")
delete(sanitizedLicense, "PhoneNumber")