mirror of
https://github.com/mattermost/mattermost.git
synced 2026-09-24 16:05:00 +08:00
Add defaults for SAML settings (#8536)
This commit is contained in:
@@ -1359,6 +1359,14 @@ func (s *SamlSettings) SetDefaults() {
|
||||
s.AssertionConsumerServiceURL = NewString("")
|
||||
}
|
||||
|
||||
if s.ScopingIDPProviderId == nil {
|
||||
s.ScopingIDPProviderId = NewString("")
|
||||
}
|
||||
|
||||
if s.ScopingIDPName == nil {
|
||||
s.ScopingIDPName = NewString("")
|
||||
}
|
||||
|
||||
if s.LoginButtonText == nil || *s.LoginButtonText == "" {
|
||||
s.LoginButtonText = NewString(USER_AUTH_SERVICE_SAML_TEXT)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user