diff --git a/src/main/scala/service/SystemSettingsService.scala b/src/main/scala/service/SystemSettingsService.scala index 40c71eb..6d9d2ad 100644 --- a/src/main/scala/service/SystemSettingsService.scala +++ b/src/main/scala/service/SystemSettingsService.scala @@ -47,7 +47,7 @@ if(getValue(props, Notification, false)){ Some(Smtp( getValue(props, SmtpHost, ""), - getOptionValue(props, SmtpPort, Some(25)), + getOptionValue(props, SmtpPort, Some(DefaultSmtpPort)), getOptionValue(props, SmtpUser, None), getOptionValue(props, SmtpPassword, None), getOptionValue[Boolean](props, SmtpSsl, None))) @@ -99,6 +99,7 @@ password: Option[String], ssl: Option[Boolean]) + val DefaultSmtpPort = 25 val DefaultLdapPort = 389 private val AllowAccountRegistration = "allow_account_registration"