2020-01-24 20:11:57 +01:00
|
|
|
/*
|
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
import React from "react";
|
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 {
|
|
|
|
onFinished: () => void;
|
|
|
|
accountPassword?: string;
|
|
|
|
tokenLogin?: boolean;
|
|
|
|
}
|
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-01-12 14:25:14 +01:00
|
|
|
public render(): JSX.Element {
|
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
|
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>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|