mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
Update password from email twice
This commit is contained in:
parent
c06b8486ea
commit
e23763e6db
1 changed files with 6 additions and 2 deletions
|
@ -322,13 +322,15 @@ class LoginViewModel @AssistedInject constructor(@Assisted initialState: LoginVi
|
||||||
if (safeLoginWizard == null) {
|
if (safeLoginWizard == null) {
|
||||||
setState {
|
setState {
|
||||||
copy(
|
copy(
|
||||||
asyncResetPassword = Fail(Throwable("Bad configuration"))
|
asyncResetPassword = Fail(Throwable("Bad configuration")),
|
||||||
|
asyncResetMailConfirmed = Uninitialized
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setState {
|
setState {
|
||||||
copy(
|
copy(
|
||||||
asyncResetPassword = Loading()
|
asyncResetPassword = Loading(),
|
||||||
|
asyncResetMailConfirmed = Uninitialized
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -360,12 +362,14 @@ class LoginViewModel @AssistedInject constructor(@Assisted initialState: LoginVi
|
||||||
if (safeLoginWizard == null) {
|
if (safeLoginWizard == null) {
|
||||||
setState {
|
setState {
|
||||||
copy(
|
copy(
|
||||||
|
asyncResetPassword = Uninitialized,
|
||||||
asyncResetMailConfirmed = Fail(Throwable("Bad configuration"))
|
asyncResetMailConfirmed = Fail(Throwable("Bad configuration"))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setState {
|
setState {
|
||||||
copy(
|
copy(
|
||||||
|
asyncResetPassword = Uninitialized,
|
||||||
asyncResetMailConfirmed = Loading()
|
asyncResetMailConfirmed = Loading()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue