Page MenuHomePhorge
Diviner Tech Docs PhabricatorAuthPasswordHashInterface

interface PhabricatorAuthPasswordHashInterface
Phorge Technical Documentation (Auth)

This interface is not documented.

Methods

public function newPasswordDigest($envelope, $password)

This method is not documented.
Parameters
PhutilOpaqueEnvelope$envelope
PhabricatorAuthPassword$password
Return
wild

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$viewerThe user selecting the password.
PhabricatorAuthPasswordEngine$engineThe password engine updating a password.
Return
list<string>Blocklist of nonsecret identifiers which the password should not be similar to.