mirror of https://github.com/vector-im/riot-web
Normalize URL naming for reset password
parent
8c6dc002f3
commit
8e12c4a3b8
|
@ -47,8 +47,8 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return {
|
return {
|
||||||
enteredHomeserverUrl: this.props.customHsUrl || this.props.defaultHsUrl,
|
enteredHsUrl: this.props.customHsUrl || this.props.defaultHsUrl,
|
||||||
enteredIdentityServerUrl: this.props.customIsUrl || this.props.defaultIsUrl,
|
enteredIsUrl: this.props.customIsUrl || this.props.defaultIsUrl,
|
||||||
progress: null,
|
progress: null,
|
||||||
password: null,
|
password: null,
|
||||||
password2: null,
|
password2: null,
|
||||||
|
@ -126,7 +126,7 @@ module.exports = React.createClass({
|
||||||
onFinished: (confirmed) => {
|
onFinished: (confirmed) => {
|
||||||
if (confirmed) {
|
if (confirmed) {
|
||||||
this.submitPasswordReset(
|
this.submitPasswordReset(
|
||||||
this.state.enteredHomeserverUrl, this.state.enteredIdentityServerUrl,
|
this.state.enteredHsUrl, this.state.enteredIsUrl,
|
||||||
this.state.email, this.state.password,
|
this.state.email, this.state.password,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -153,10 +153,10 @@ module.exports = React.createClass({
|
||||||
onServerConfigChange: function(config) {
|
onServerConfigChange: function(config) {
|
||||||
const newState = {};
|
const newState = {};
|
||||||
if (config.hsUrl !== undefined) {
|
if (config.hsUrl !== undefined) {
|
||||||
newState.enteredHomeserverUrl = config.hsUrl;
|
newState.enteredHsUrl = config.hsUrl;
|
||||||
}
|
}
|
||||||
if (config.isUrl !== undefined) {
|
if (config.isUrl !== undefined) {
|
||||||
newState.enteredIdentityServerUrl = config.isUrl;
|
newState.enteredIsUrl = config.isUrl;
|
||||||
}
|
}
|
||||||
this.setState(newState);
|
this.setState(newState);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue