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"
|
||||
|
|
|
@ -1379,6 +1379,8 @@
|
|||
"Your password has been reset": "Your password has been reset",
|
||||
"You have been logged out of all devices and will no longer receive push notifications. To re-enable notifications, sign in again on each device": "You have been logged out of all devices and will no longer receive push notifications. To re-enable notifications, sign in again on each device",
|
||||
"Return to login screen": "Return to login screen",
|
||||
"Your account": "Your account",
|
||||
"Your account on %(serverName)s": "Your account on %(serverName)s",
|
||||
"A verification email will be sent to your inbox to confirm setting your new password.": "A verification email will be sent to your inbox to confirm setting your new password.",
|
||||
"Send Reset Email": "Send Reset Email",
|
||||
"Sign in instead": "Sign in instead",
|
||||
|
|
Loading…
Reference in a new issue