Add your account header to reset password

This commit is contained in:
J. Ryan Stinnett 2019-02-06 16:14:21 +00:00
parent 8e12c4a3b8
commit 8aff6b2e45
2 changed files with 15 additions and 0 deletions

View file

@ -226,7 +226,20 @@ module.exports = React.createClass({
errorText = <div className="mx_Login_error">{ err }</div>;
}
let yourMatrixAccountText = _t('Your account');
try {
const parsedHsUrl = new URL(this.state.enteredHsUrl);
yourMatrixAccountText = _t('Your account on %(serverName)s', {
serverName: parsedHsUrl.hostname,
});
} catch (e) {
// ignore
}
resetPasswordJsx = <div>
<h3>
{yourMatrixAccountText}
</h3>
<form onSubmit={this.onSubmitForm}>
<div className="mx_AuthBody_fieldRow">
<input className="mx_Login_field" ref="user" type="text"