Disable password reset if no ID server

This commit is contained in:
David Baker 2019-08-07 13:30:52 +01:00
parent d31f1ea7f2
commit 9fa5e01f2f
2 changed files with 19 additions and 2 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}