Wt: Wt::Auth::AbstractPasswordService::StrengthValidatorResult Class Reference

Wt 4.10.4

Loading...
Searching...
No Matches
Public Member Functions | List of all members
Wt::Auth::AbstractPasswordService::StrengthValidatorResult Class Reference

Result returned when validating password strength. More...

`#include <AbstractPasswordService.h>`

## 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.

## Detailed Description

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.

See also
  AbstractStrengthValidator::evaluateStrength()