Skip to content

Commit 867ae1b

Browse files
committed
fix login
1 parent 1bdb69c commit 867ae1b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/editor/src/app/matrix-auth/MatrixAuthStore.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ export class MatrixAuthStore extends lifecycle.Disposable {
221221
private async setLoggedIn(
222222
credentials: IMatrixClientCreds
223223
): Promise<MatrixClient> {
224+
this.setLoggedInState(false);
224225
credentials.freshLogin = true;
225226
this.stopMatrixClient();
226227
const pickleKey =
@@ -961,6 +962,7 @@ export class MatrixAuthStore extends lifecycle.Disposable {
961962
const crossSigningIsSetUp = cli.getStoredCrossSigningForUser(
962963
cli.getUserId()
963964
);
965+
964966
if (crossSigningIsSetUp) {
965967
// if (SecurityCustomisations.SHOW_ENCRYPTION_SETUP_UI === false) {
966968
// this.onLoggedIn();

packages/editor/src/app/matrix-auth/auth/views/PasswordLogin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
251251
//!SdkConfig.get().disable_3pid_login) {
252252
if (true) {
253253
const userNameOption = { label: "Username", value: LoginField.MatrixId };
254-
const emailOption = { label: "Email Address", value: LoginField.Email };
254+
const emailOption = { label: "Email address", value: LoginField.Email };
255255
// const phoneOption = { label: "Phone", value: LoginField.Phone };
256256
const options = [userNameOption, emailOption]; //, phoneOption];
257257
// Perhaps this should not be a <Field> but just a <select>, as it only changes the design of the form,

0 commit comments

Comments
 (0)