|
const | TABLE = 'tmppasswds' |
|
const | PK = Adherent::PK |
|
const | DEFAULT_SIZE = 50 |
|
const | DEFAULT_SIZE = 8 |
|
|
string | $chars = 'abcdefghjkmnpqrstuvwxyz0123456789&@{[]}%#+*:ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
string | $chars = 'abcdefghjkmnpqrstuvwxyz0123456789' |
|
string | $hash = null |
|
string | $new_password |
|
Temporary password management
- Author
- Frédéric Jacquot gna@l.nosp@m.ogee.nosp@m.k.com
-
Georges Khaznadar (password encryption, images) georg.nosp@m.es@u.nosp@m.nknow.nosp@m..org
-
Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be
◆ __construct()
Galette\Core\Password::__construct |
( |
Db |
$zdb, |
|
|
bool |
$clean = true |
|
) |
| |
Default constructor
- Parameters
-
Db | $zdb | Database instance: |
boolean | $clean | Whether we should clean expired passwords in database |
◆ cleanExpired()
Galette\Core\Password::cleanExpired |
( |
| ) |
|
◆ generateNewPassword()
Galette\Core\Password::generateNewPassword |
( |
int |
$id_adh | ) |
|
Generates a new password for specified member
- Parameters
-
int | $id_adh | Member identifier |
- Returns
- boolean
Reimplemented from Galette\Core\AbstractPassword.
◆ isHashValid()
Galette\Core\Password::isHashValid |
( |
string |
$hash | ) |
|
Check if requested hash is valid
- Parameters
-
- Returns
- false|int false if hash is not valid, member id otherwise
◆ removeHash()
Galette\Core\Password::removeHash |
( |
string |
$hash | ) |
|
Remove a hash that has been used (ie. once password has been updated)
- Parameters
-
- Returns
- boolean
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/Core/Password.php