Fix ServerSettings.isMissingCredentials
We support SMTP without authentication and in that case set the username to the empty string :(
@@ -18,7 +18,7 @@ data class ServerSettings @JvmOverloads constructor(
) {
val isMissingCredentials: Boolean = when (authenticationType) {
AuthType.EXTERNAL -> clientCertificateAlias == null
- else -> password == null
+ else -> username.isNotBlank() && password == null
}
init {
