2020-01-24 22:11:57 +03: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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
2020-09-15 17:25:50 +03:00
|
|
|
import AuthPage from '../../views/auth/AuthPage';
|
|
|
|
import CompleteSecurityBody from '../../views/auth/CompleteSecurityBody';
|
|
|
|
import CreateCrossSigningDialog from '../../views/dialogs/security/CreateCrossSigningDialog';
|
2020-01-24 22:11:57 +03:00
|
|
|
|
|
|
|
export default class E2eSetup extends React.Component {
|
|
|
|
static propTypes = {
|
|
|
|
onFinished: PropTypes.func.isRequired,
|
2020-01-25 18:28:06 +03:00
|
|
|
accountPassword: PropTypes.string,
|
2021-01-27 15:50:12 +03:00
|
|
|
tokenLogin: PropTypes.bool,
|
2020-01-24 22:11:57 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<AuthPage>
|
2020-01-28 01:27:11 +03:00
|
|
|
<CompleteSecurityBody>
|
2020-09-15 17:25:50 +03:00
|
|
|
<CreateCrossSigningDialog
|
2020-01-24 22:11:57 +03:00
|
|
|
onFinished={this.props.onFinished}
|
2020-01-25 18:28:06 +03:00
|
|
|
accountPassword={this.props.accountPassword}
|
2021-01-27 15:50:12 +03:00
|
|
|
tokenLogin={this.props.tokenLogin}
|
2020-01-24 22:11:57 +03:00
|
|
|
/>
|
2020-01-28 01:27:11 +03:00
|
|
|
</CompleteSecurityBody>
|
2020-01-24 22:11:57 +03:00
|
|
|
</AuthPage>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|