Merge pull request #2471 from matrix-org/dbkr/keep_going
Token encouragement if zxcvbn gives no feedback
This commit is contained in:
commit
e558d2719e
2 changed files with 2 additions and 3 deletions
|
@ -252,9 +252,7 @@ export default React.createClass({
|
||||||
for (let i = 0; i < this.state.zxcvbnResult.feedback.suggestions.length; ++i) {
|
for (let i = 0; i < this.state.zxcvbnResult.feedback.suggestions.length; ++i) {
|
||||||
suggestions.push(<div key={i}>{this.state.zxcvbnResult.feedback.suggestions[i]}</div>);
|
suggestions.push(<div key={i}>{this.state.zxcvbnResult.feedback.suggestions[i]}</div>);
|
||||||
}
|
}
|
||||||
const suggestionBlock = suggestions.length > 0 ? <div>
|
const suggestionBlock = <div>{suggestions.length > 0 ? suggestions : _t("Keep going...")}</div>;
|
||||||
{suggestions}
|
|
||||||
</div> : null;
|
|
||||||
|
|
||||||
helpText = <div>
|
helpText = <div>
|
||||||
{this.state.zxcvbnResult.feedback.warning}
|
{this.state.zxcvbnResult.feedback.warning}
|
||||||
|
|
|
@ -1380,6 +1380,7 @@
|
||||||
"File to import": "File to import",
|
"File to import": "File to import",
|
||||||
"Import": "Import",
|
"Import": "Import",
|
||||||
"Great! This passphrase looks strong enough.": "Great! This passphrase looks strong enough.",
|
"Great! This passphrase looks strong enough.": "Great! This passphrase looks strong enough.",
|
||||||
|
"Keep going...": "Keep going...",
|
||||||
"Secure your encrypted message history with a Recovery Passphrase.": "Secure your encrypted message history with a Recovery Passphrase.",
|
"Secure your encrypted message history with a Recovery Passphrase.": "Secure your encrypted message history with a Recovery Passphrase.",
|
||||||
"You'll need it if you log out or lose access to this device.": "You'll need it if you log out or lose access to this device.",
|
"You'll need it if you log out or lose access to this device.": "You'll need it if you log out or lose access to this device.",
|
||||||
"Enter a passphrase...": "Enter a passphrase...",
|
"Enter a passphrase...": "Enter a passphrase...",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue