Add your account header to reset password
This commit is contained in:
parent
8e12c4a3b8
commit
8aff6b2e45
2 changed files with 15 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue