Disable password reset if no ID server
This commit is contained in:
parent
d31f1ea7f2
commit
9fa5e01f2f
2 changed files with 19 additions and 2 deletions
|
@ -256,6 +256,22 @@ module.exports = React.createClass({
|
||||||
</a>;
|
</a>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.props.serverConfig.isUrl) {
|
||||||
|
return <div>
|
||||||
|
<h3>
|
||||||
|
{yourMatrixAccountText}
|
||||||
|
{editLink}
|
||||||
|
</h3>
|
||||||
|
{_t(
|
||||||
|
"No identity server is configured: " +
|
||||||
|
"add one in server settings to reset your password.",
|
||||||
|
)}
|
||||||
|
<a className="mx_AuthBody_changeFlow" onClick={this.onLoginClick} href="#">
|
||||||
|
{_t('Sign in instead')}
|
||||||
|
</a>
|
||||||
|
</div>;
|
||||||
|
}
|
||||||
|
|
||||||
return <div>
|
return <div>
|
||||||
{errorText}
|
{errorText}
|
||||||
{serverDeadSection}
|
{serverDeadSection}
|
||||||
|
|
|
@ -556,10 +556,10 @@
|
||||||
"Success": "Success",
|
"Success": "Success",
|
||||||
"Your password was successfully changed. You will not receive push notifications on other devices until you log back in to them": "Your password was successfully changed. You will not receive push notifications on other devices until you log back in to them",
|
"Your password was successfully changed. You will not receive push notifications on other devices until you log back in to them": "Your password was successfully changed. You will not receive push notifications on other devices until you log back in to them",
|
||||||
"Profile": "Profile",
|
"Profile": "Profile",
|
||||||
"Account": "Account",
|
|
||||||
"Set a new account password...": "Set a new account password...",
|
|
||||||
"Email addresses": "Email addresses",
|
"Email addresses": "Email addresses",
|
||||||
"Phone numbers": "Phone numbers",
|
"Phone numbers": "Phone numbers",
|
||||||
|
"Account": "Account",
|
||||||
|
"Set a new account password...": "Set a new account password...",
|
||||||
"Language and region": "Language and region",
|
"Language and region": "Language and region",
|
||||||
"Theme": "Theme",
|
"Theme": "Theme",
|
||||||
"Light theme": "Light theme",
|
"Light theme": "Light theme",
|
||||||
|
@ -1565,6 +1565,7 @@
|
||||||
"Your password has been reset.": "Your password has been reset.",
|
"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.",
|
"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",
|
"Return to login screen": "Return to login screen",
|
||||||
|
"No identity server is configured: add one in server settings to reset your password.": "No identity server is configured: add one in server settings to reset your password.",
|
||||||
"Set a new password": "Set a new password",
|
"Set a new password": "Set a new password",
|
||||||
"Invalid homeserver discovery response": "Invalid homeserver discovery response",
|
"Invalid homeserver discovery response": "Invalid homeserver discovery response",
|
||||||
"Failed to get autodiscovery configuration from server": "Failed to get autodiscovery configuration from server",
|
"Failed to get autodiscovery configuration from server": "Failed to get autodiscovery configuration from server",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue