Merge pull request #1825 from matrix-org/luke/fix-forgot-password-page

Fix broken ForgotPassword component
pull/21833/head
David Baker 2018-04-06 11:15:01 +01:00 committed by GitHub
commit 5b8e75231d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import { _t } from '../../../languageHandler';
import sdk from '../../../index'; import sdk from '../../../index';
import Modal from "../../../Modal"; import Modal from "../../../Modal";
import MatrixClientPeg from "../../../MatrixClientPeg"; import MatrixClientPeg from "../../../MatrixClientPeg";
import SdkConfig from "../../../SdkConfig";
import PasswordReset from "../../../PasswordReset"; import PasswordReset from "../../../PasswordReset";
@ -185,7 +186,7 @@ module.exports = React.createClass({
); );
} else { } else {
let serverConfigSection; let serverConfigSection;
if (!config.disable_custom_urls) { if (!SdkConfig.get().disable_custom_urls) {
serverConfigSection = ( serverConfigSection = (
<ServerConfig ref="serverConfig" <ServerConfig ref="serverConfig"
withToggleButton={true} withToggleButton={true}