forked from mystiq/dex
parent
e8f347a738
commit
20857d71e7
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ func (cfg *SmtpEmailerConfig) UnmarshalJSON(data []byte) error {
|
|||
if smtpCfg.Host == "" {
|
||||
return errors.New("must set SMTP host")
|
||||
}
|
||||
if smtpCfg.Port == "" {
|
||||
if smtpCfg.Port == 0 {
|
||||
return errors.New("must set SMTP port")
|
||||
}
|
||||
*cfg = SmtpEmailerConfig(smtpCfg)
|
||||
|
|
Loading…
Reference in a new issue