Path: blob/master/src/applications/auth/password/PhabricatorAuthPasswordHashInterface.php
12256 views
<?php12interface PhabricatorAuthPasswordHashInterface {34public function newPasswordDigest(5PhutilOpaqueEnvelope $envelope,6PhabricatorAuthPassword $password);78/**9* Return a list of strings which passwords associated with this object may10* not be similar to.11*12* This method allows you to prevent users from selecting their username13* as their password or picking other passwords which are trivially similar14* to an account or object identifier.15*16* @param PhabricatorUser The user selecting the password.17* @param PhabricatorAuthPasswordEngine The password engine updating a18* password.19* @return list<string> Blocklist of nonsecret identifiers which the password20* should not be similar to.21*/22public function newPasswordBlocklist(23PhabricatorUser $viewer,24PhabricatorAuthPasswordEngine $engine);2526}272829