Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32aefc27 authored by cketti's avatar cketti
Browse files

Fix ServerSettings.isMissingCredentials

We support SMTP without authentication and in that case set the username to the empty string :(
parent dd151ec6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {