2020-01-24 20:11:57 +01:00
|
|
|
/*
|
2024-09-09 15:57:16 +02:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-01-24 20:11:57 +01:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 15:57:16 +02:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2020-01-24 20:11:57 +01:00
|
|
|
*/
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
import React from "react";
|
2024-10-22 13:42:07 +02:00
|
|
|
import { MatrixClient } from "matrix-js-sdk/src/matrix";
|
2021-10-23 00:23:32 +02:00
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
import AuthPage from "../../views/auth/AuthPage";
|
|
|
|
import CompleteSecurityBody from "../../views/auth/CompleteSecurityBody";
|
|
|
|
import CreateCrossSigningDialog from "../../views/dialogs/security/CreateCrossSigningDialog";
|
2020-01-24 20:11:57 +01:00
|
|
|
|
2021-07-03 12:37:06 +02:00
|
|
|
interface IProps {
|
2024-10-22 13:42:07 +02:00
|
|
|
matrixClient: MatrixClient;
|
2021-07-03 12:37:06 +02:00
|
|
|
onFinished: () => void;
|
|
|
|
accountPassword?: string;
|
2024-10-22 13:42:07 +02:00
|
|
|
tokenLogin: boolean;
|
2021-07-03 12:37:06 +02:00
|
|
|
}
|
2020-01-24 20:11:57 +01:00
|
|
|
|
2021-07-03 12:37:06 +02:00
|
|
|
export default class E2eSetup extends React.Component<IProps> {
|
2023-02-13 18:01:43 +01:00
|
|
|
public render(): React.ReactNode {
|
2020-01-24 20:11:57 +01:00
|
|
|
return (
|
|
|
|
<AuthPage>
|
2020-01-27 23:27:11 +01:00
|
|
|
<CompleteSecurityBody>
|
2020-09-15 16:25:50 +02:00
|
|
|
<CreateCrossSigningDialog
|
2024-10-22 13:42:07 +02:00
|
|
|
matrixClient={this.props.matrixClient}
|
2020-01-24 20:11:57 +01:00
|
|
|
onFinished={this.props.onFinished}
|
2020-01-25 16:28:06 +01:00
|
|
|
accountPassword={this.props.accountPassword}
|
2021-01-27 13:50:12 +01:00
|
|
|
tokenLogin={this.props.tokenLogin}
|
2020-01-24 20:11:57 +01:00
|
|
|
/>
|
2020-01-27 23:27:11 +01:00
|
|
|
</CompleteSecurityBody>
|
2020-01-24 20:11:57 +01:00
|
|
|
</AuthPage>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|