Token encouragement if zxcvbn gives no feedback

zxcvbn is hardcoded to give no suggedtions if the score is greater
than 2, but our threshold is 4, so give some generic feedback.

Fixes https://github.com/vector-im/riot-web/issues/7860
pull/21833/head
David Baker 2019-01-21 19:20:11 +00:00
parent eecc37038a
commit ce41228000
2 changed files with 2 additions and 1 deletions

View File

@ -254,7 +254,7 @@ export default React.createClass({
}
const suggestionBlock = suggestions.length > 0 ? <div>
{suggestions}
</div> : null;
</div> : <div>{_t("Keep going...")}</div>;
helpText = <div>
{this.state.zxcvbnResult.feedback.warning}

View File

@ -1381,6 +1381,7 @@
"File to import": "File to import",
"Import": "Import",
"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.",
"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...",