diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js
index f4337e15fd..6d74b4ab12 100644
--- a/src/components/structures/MatrixChat.js
+++ b/src/components/structures/MatrixChat.js
@@ -1003,8 +1003,8 @@ module.exports = React.createClass({
guestAccessToken={this.state.guestAccessToken}
defaultHsUrl={this.props.config.default_hs_url}
defaultIsUrl={this.props.config.default_is_url}
- initialHsUrl={this.getCurrentHsUrl()}
- initialIsUrl={this.getCurrentIsUrl()}
+ customHsUrl={this.getCurrentHsUrl()}
+ customIsUrl={this.getCurrentIsUrl()}
registrationUrl={this.props.registrationUrl}
onLoggedIn={this.onRegistered}
onLoginClick={this.onLoginClick}
@@ -1015,8 +1015,8 @@ module.exports = React.createClass({
);
@@ -1027,8 +1027,8 @@ module.exports = React.createClass({
onRegisterClick={this.onRegisterClick}
defaultHsUrl={this.props.config.default_hs_url}
defaultIsUrl={this.props.config.default_is_url}
- initialHsUrl={this.getCurrentHsUrl()}
- initialIsUrl={this.getCurrentIsUrl()}
+ customHsUrl={this.getCurrentHsUrl()}
+ customIsUrl={this.getCurrentIsUrl()}
onForgotPasswordClick={this.onForgotPasswordClick}
onLoginAsGuestClick={this.props.enableGuest && this.props.config && this.props.config.default_hs_url ? this._registerAsGuest: undefined}
/>
diff --git a/src/components/structures/login/ForgotPassword.js b/src/components/structures/login/ForgotPassword.js
index 7f22ee41f1..c457ce1ead 100644
--- a/src/components/structures/login/ForgotPassword.js
+++ b/src/components/structures/login/ForgotPassword.js
@@ -29,8 +29,8 @@ module.exports = React.createClass({
propTypes: {
defaultHsUrl: React.PropTypes.string,
defaultIsUrl: React.PropTypes.string,
- initialHsUrl: React.PropTypes.string,
- initialIsUrl: React.PropTypes.string,
+ customHsUrl: React.PropTypes.string,
+ customIsUrl: React.PropTypes.string,
onLoginClick: React.PropTypes.func,
onRegisterClick: React.PropTypes.func,
onComplete: React.PropTypes.func.isRequired
@@ -182,8 +182,8 @@ module.exports = React.createClass({
withToggleButton={true}
defaultHsUrl={this.props.defaultHsUrl}
defaultIsUrl={this.props.defaultIsUrl}
- initialHsUrl={this.props.initialHsUrl}
- initialIsUrl={this.props.initialIsUrl}
+ customHsUrl={this.props.customHsUrl}
+ customIsUrl={this.props.customIsUrl}
onHsUrlChanged={this.onHsUrlChanged}
onIsUrlChanged={this.onIsUrlChanged}
delayTimeMs={0}/>
diff --git a/src/components/structures/login/Login.js b/src/components/structures/login/Login.js
index 9ab943bb68..1b881187f8 100644
--- a/src/components/structures/login/Login.js
+++ b/src/components/structures/login/Login.js
@@ -31,8 +31,8 @@ module.exports = React.createClass({displayName: 'Login',
propTypes: {
onLoggedIn: React.PropTypes.func.isRequired,
- initialHsUrl: React.PropTypes.string,
- initialIsUrl: React.PropTypes.string,
+ customHsUrl: React.PropTypes.string,
+ customIsUrl: React.PropTypes.string,
defaultHsUrl: React.PropTypes.string,
defaultIsUrl: React.PropTypes.string,
@@ -48,8 +48,8 @@ module.exports = React.createClass({displayName: 'Login',
return {
busy: false,
errorText: null,
- enteredHomeserverUrl: this.props.initialHsUrl || this.props.defaultHsUrl,
- enteredIdentityServerUrl: this.props.initialIsUrl || this.props.defaultIsUrl,
+ enteredHomeserverUrl: this.props.customHsUrl || this.props.defaultHsUrl,
+ enteredIdentityServerUrl: this.props.customIsUrl || this.props.defaultIsUrl,
// used for preserving username when changing homeserver
username: "",
@@ -220,8 +220,8 @@ module.exports = React.createClass({displayName: 'Login',
{ this.componentForStep(this._getCurrentFlowStep()) }
-
+
+
+
+
+ onChange={this.onServerConfigVisibleChange.bind(this, true)} />
);