public function newPasswordDigest($envelope, $password)
public function newPasswordDigest($envelope, $password)
Parameters
PhutilOpaqueEnvelope | $envelope | |
PhabricatorAuthPassword | $password |
Return
wild |
public function newPasswordBlocklist($viewer, $engine)
public function newPasswordBlocklist($viewer, $engine)
Return a list of strings which passwords associated with this object may not be similar to.
This method allows you to prevent users from selecting their username as their password or picking other passwords which are trivially similar to an account or object identifier.
Parameters
PhabricatorUser | $viewer | The user selecting the password. |
PhabricatorAuthPasswordEngine | $engine | The password engine updating a password. |
Return
list<string> | Blocklist of nonsecret identifiers which the password should not be similar to. |