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
8 changed files with 105 additions and 28 deletions
@@ -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}