Wt
3.7.1
|
Result returned when validating password strength. More...
Public Member Functions | |
StrengthValidatorResult (bool valid, const WString &message, int strength) | |
Constructor. | |
bool | isValid () |
Returns whether the password is considered strong enough. | |
WString | message () |
Returns a message describing the password strength. | |
int | strength () |
Returns the password strength in a scale of 0 to 5. | |
Result returned when validating password strength.
This class contains information on the validity and the strength of the password together with possible messages. When the password is considered not strong enough, a message should be provided which helps the user pick a stronger password.