mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-03 12:51:04 +02:00
Fix bugs introduced by dodgy merge
This commit is contained in:
parent
49437e301e
commit
2c5fb01f03
@ -90,7 +90,7 @@ module.exports = React.createClass({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
changePassword: function(old_password, new_password) {
|
changePassword: function(oldPassword, newPassword) {
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
|
|
||||||
if (!this.props.confirm) {
|
if (!this.props.confirm) {
|
||||||
@ -158,7 +158,7 @@ module.exports = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onClickChange: function() {
|
onClickChange: function() {
|
||||||
const oldPassword = this.refs.old_input.value;
|
const oldPassword = this.state.cachedPassword || this.refs.old_input.value;
|
||||||
const newPassword = this.refs.new_input.value;
|
const newPassword = this.refs.new_input.value;
|
||||||
const confirmPassword = this.refs.confirm_input.value;
|
const confirmPassword = this.refs.confirm_input.value;
|
||||||
const err = this.props.onCheckPassword(
|
const err = this.props.onCheckPassword(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user