Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Forgot password mode: enable the button if HS is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty authored and BillCarsonFr committed Sep 24, 2019
1 parent 51067d4 commit 7c699da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vector/src/main/java/im/vector/activity/LoginActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2122,7 +2122,7 @@ public void onMatrixError(MatrixError e) {
*/
private void checkLoginFlows() {
// check only login flows
if (mMode != MODE_LOGIN) {
if (mMode != MODE_LOGIN && mMode != MODE_FORGOT_PASSWORD) {
return;
}

Expand All @@ -2141,7 +2141,7 @@ public void onSuccess(List<LoginFlow> flows) {
// stop listening to network state
removeNetworkStateNotificationListener();

if (mMode == MODE_LOGIN) {
if (mMode == MODE_LOGIN || mMode == MODE_FORGOT_PASSWORD) {
enableLoadingScreen(false);
setActionButtonsEnabled(true);

Expand Down Expand Up @@ -2182,7 +2182,7 @@ public void onSuccess(List<LoginFlow> flows) {
}

private void onError(String errorMessage) {
if (mMode == MODE_LOGIN) {
if (mMode == MODE_LOGIN || mMode == MODE_FORGOT_PASSWORD) {
enableLoadingScreen(false);
setActionButtonsEnabled(false);
displayErrorOnUrl(mHomeServerTextTil, errorMessage);
Expand Down

0 comments on commit 7c699da

Please sign in to comment.