|
Preferences | $preferences |
|
array | $errors = [] |
|
array | $strength_errors = [] |
|
int | $strength = null |
|
bool | $blacklisted = false |
|
array | $personal_infos = [] |
|
◆ __construct()
Galette\Util\Password::__construct |
( |
Preferences |
$prefs | ) |
|
Default constructor
- Parameters
-
Preferences | $prefs | Preferences instance |
◆ addPersonalInformation()
Galette\Util\Password::addPersonalInformation |
( |
array |
$infos | ) |
|
Add personal information to check against
- Parameters
-
array<int,string> | $infos Personal information |
- Returns
- array<int, string>
◆ calculateStrength()
Galette\Util\Password::calculateStrength |
( |
string |
$password | ) |
|
Calculate password strength
- Parameters
-
- Returns
- integer
◆ getBlacklistedPasswords()
Galette\Util\Password::getBlacklistedPasswords |
( |
| ) |
|
Build password blacklist
- Returns
- array<int, string>
◆ getErrors()
Galette\Util\Password::getErrors |
( |
| ) |
|
Get errors
- Returns
- array<int, string>
◆ getStrenght()
Galette\Util\Password::getStrenght |
( |
| ) |
|
Get current strength
- Returns
- integer
◆ getStrenghtErrors()
Galette\Util\Password::getStrenghtErrors |
( |
| ) |
|
Get strength errors
- Returns
- array<int, string>
◆ isBlacklisted()
Galette\Util\Password::isBlacklisted |
( |
string |
$password | ) |
|
Is password blacklisted?
- Parameters
-
- Returns
- boolean
◆ isValid()
Galette\Util\Password::isValid |
( |
string |
$password | ) |
|
Does password suits requirements?
- Parameters
-
- Returns
- boolean
◆ setAdherent()
Galette\Util\Password::setAdherent |
( |
Adherent |
$adh | ) |
|
Set member and calculate personal information to blacklist
- Parameters
-
Adherent | $adh | Adherent instance |
- Returns
- self
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/Util/Password.php