Merge pull request #3285 from matrix-org/dbkr/work_without_is

Work with no ID server set
This commit is contained in:
David Baker 2019-08-08 09:48:44 +01:00 committed by GitHub
commit 54ca7b708e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 105 additions and 28 deletions

View file

@ -256,6 +256,22 @@ module.exports = React.createClass({
</a>;
}
if (!this.props.serverConfig.isUrl) {
return <div>
<h3>
{yourMatrixAccountText}
{editLink}
</h3>
{_t(
"No identity server is configured: " +
"add one in server settings to reset your password.",
)}
<a className="mx_AuthBody_changeFlow" onClick={this.onLoginClick} href="#">
{_t('Sign in instead')}
</a>
</div>;
}
return <div>
{errorText}
{serverDeadSection}