renable login after fail attempt (#4552)

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2022-01-30 22:06:30 -06:00 committed by GitHub
parent 4c31527832
commit 92f941a54c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 2 deletions

View file

@ -116,6 +116,7 @@ export class SessionCommands {
SessionCommands.updateStatus(StatusEnum.DISCONNECTED, `Login failed: unknown error: ${raw.responseCode}`);
}
SessionPersistence.loginFailed();
SessionCommands.disconnect();
});
}

View file

@ -13,6 +13,10 @@ export class SessionPersistence {
ServerDispatch.loginSuccessful(options);
}
static loginFailed() {
ServerDispatch.loginFailed();
}
static connectionClosed(reason: number) {
ServerDispatch.connectionClosed(reason);
}