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

Verified Commit 31c7dd44 authored by Romain Hunault's avatar Romain Hunault 🚴🏻
Browse files

fix(auth): route to OIDC based on empty server URL

parent dfc57bd7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -184,7 +184,8 @@ class EeloAuthenticatorFragment : Fragment() {
    private fun login() {
        handleNoNetworkAvailable()

        val handleOpenIdAuth = EeloAuthenticatorModel.ENABLE_OIDC_SUPPORT && !toggleButtonState
        val serverUrl = serverUrlEditText.text?.toString().orEmpty().trim()
        val handleOpenIdAuth = EeloAuthenticatorModel.ENABLE_OIDC_SUPPORT && serverUrl.isEmpty()
        val userId = userIdEditText.text.toString()
        val password = passwordEditText.text.toString()