diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js index 9583fac270..a2ed97d1cf 100644 --- a/src/components/structures/auth/ForgotPassword.js +++ b/src/components/structures/auth/ForgotPassword.js @@ -226,7 +226,20 @@ module.exports = React.createClass({ errorText =
{ err }
; } + 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 =
+

+ {yourMatrixAccountText} +