Password Strength

Tag Helper <shareit-password-strength></shareit-password-strength>

Provides a visual indicator of the strength of the password being entered.

A single point is allocated for uppercase, lowercase, numeric, and symbol characters respectively. The total is then summed to provide a score.

Weak: Score < 2 or password length less than 5
Medium: Score == 2 or password length less than 8 or missing any of upper, lower, or numeric characters.
Strong: Score >= 3 and passowrd length >= 8 and contains upper, lower, and numeric characters.

Properties

string for-id

The id of the password field to test.

shareit-password-strength

Razor
<shareit-password-strength for-id="MyFieldId"></shareit-password-strength>