Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Token encouragement if zxcvbn gives no feedback #2471

Merged
merged 2 commits into from
Jan 23, 2019
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jan 21, 2019

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 element-hq/element-web#7860

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 element-hq/element-web#7860
@dbkr dbkr requested a review from a team January 21, 2019 19:23
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks! 😁

@@ -254,7 +254,7 @@ export default React.createClass({
}
const suggestionBlock = suggestions.length > 0 ? <div>
{suggestions}
</div> : null;
</div> : <div>{_t("Keep going...")}</div>;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move the ternary inside the <div>s to avoid the repetition?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants