forked from github/wulkanowy-mirror
After deselecting fakelog, clear credentials from login form (#1713)
This commit is contained in:
parent
c87085a226
commit
45e884127f
@ -6,6 +6,7 @@ import io.github.wulkanowy.ui.modules.main.MainActivity
|
||||
import javax.inject.Singleton
|
||||
import javax.inject.Inject
|
||||
|
||||
@Suppress("UNUSED_PARAMETER", "unused")
|
||||
@Singleton
|
||||
class InAppReviewHelper @Inject constructor(
|
||||
@ApplicationContext private val context: Context
|
||||
|
@ -52,6 +52,8 @@ class LoginFormPresenter @Inject constructor(
|
||||
clearHostError()
|
||||
if (formHostValue.contains("fakelog")) {
|
||||
setCredentials("jan@fakelog.cf", "jan123")
|
||||
} else if (formUsernameValue == "jan@fakelog.cf" && formPassValue == "jan123") {
|
||||
setCredentials("", "")
|
||||
}
|
||||
updateUsernameLabel()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user