1
0
mirror of https://github.com/rancher/types.git synced 2025-09-24 19:39:13 +00:00

Merge pull request #1051 from XianglongLuo/notifiersmtp

Update notifier fields type
This commit is contained in:
Dan Ramich
2020-02-18 14:08:36 -07:00
committed by GitHub

View File

@@ -283,7 +283,7 @@ type SMTPConfig struct {
Host string `json:"host,omitempty" norman:"required,type=hostname"`
Port int `json:"port,omitempty" norman:"required,min=1,max=65535,default=587"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
Password string `json:"password,omitempty" norman:"type=password"`
Sender string `json:"sender,omitempty" norman:"required"`
DefaultRecipient string `json:"defaultRecipient,omitempty" norman:"required"`
TLS bool `json:"tls,omitempty" norman:"required,default=true"`