summaryrefslogtreecommitdiffstats
path: root/model/license.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-30 14:33:32 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-30 14:33:32 -0400
commit74d2c5b6ceb507e11032c79252f1778e7512d612 (patch)
treee2addd98f0a14cdf54fce337bfc9d732de6f0f04 /model/license.go
parent6cad40ecf41740ae57a14df12dc363adafb49d18 (diff)
parentf9a3a4b3949dddecae413b97904c895b2cd887bf (diff)
downloadchat-74d2c5b6ceb507e11032c79252f1778e7512d612.tar.gz
chat-74d2c5b6ceb507e11032c79252f1778e7512d612.tar.bz2
chat-74d2c5b6ceb507e11032c79252f1778e7512d612.zip
Merge pull request #2518 from mattermost/plt-2187
PLT-2187 Add MFA functionality
Diffstat (limited to 'model/license.go')
-rw-r--r--model/license.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/model/license.go b/model/license.go
index 8461c9f76..cab22a685 100644
--- a/model/license.go
+++ b/model/license.go
@@ -34,6 +34,7 @@ type Customer struct {
type Features struct {
Users *int `json:"users"`
LDAP *bool `json:"ldap"`
+ MFA *bool `json:"mfa"`
GoogleSSO *bool `json:"google_sso"`
Compliance *bool `json:"compliance"`
}
@@ -49,6 +50,11 @@ func (f *Features) SetDefaults() {
*f.LDAP = true
}
+ if f.MFA == nil {
+ f.MFA = new(bool)
+ *f.MFA = true
+ }
+
if f.GoogleSSO == nil {
f.GoogleSSO = new(bool)
*f.GoogleSSO = true