diff --git a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/rest/SelfossApi.kt b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/rest/SelfossApi.kt index 81e4684..d010080 100644 --- a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/rest/SelfossApi.kt +++ b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/rest/SelfossApi.kt @@ -99,8 +99,8 @@ class SelfossApi(private val appSettingsService: AppSettingsService) { } // Api version was introduces after the POST login, so when there is a version, it should be available - fun shouldHavePostLogin() = appSettingsService.getApiVersion() != -1 - fun hasLoginInfo() = + private fun shouldHavePostLogin() = appSettingsService.getApiVersion() != -1 + private fun hasLoginInfo() = appSettingsService.getUserName().isNotEmpty() && appSettingsService.getPassword() .isNotEmpty()