forked from github/wulkanowy-mirror
Fix recaptcha loading in password recover (#935)
This commit is contained in:
parent
9997b1adbb
commit
20f931c5cc
@ -66,7 +66,12 @@ class LoginRecoverPresenter @Inject constructor(
|
||||
showErrorView(false)
|
||||
showCaptcha(false)
|
||||
}
|
||||
Status.SUCCESS -> view?.loadReCaptcha(siteKey = it.data!!.first, url = it.data.second)
|
||||
Status.SUCCESS -> view?.run {
|
||||
loadReCaptcha(url = it.data!!.first, siteKey = it.data.second)
|
||||
showProgress(false)
|
||||
showErrorView(false)
|
||||
showCaptcha(true)
|
||||
}
|
||||
Status.ERROR -> {
|
||||
Timber.i("Obtain captcha site key result: An exception occurred")
|
||||
errorHandler.dispatch(it.error!!)
|
||||
|
Loading…
Reference in New Issue
Block a user