Remove all "FileHasObject" edge reads and writes
[phabricator.git] / src / applications / auth / password / PhabricatorAuthPasswordHashInterface.php
blobaf20db3ed4d4befa19fe5e8dda672a13e893ccc7
1 <?php
3 interface PhabricatorAuthPasswordHashInterface {
5 public function newPasswordDigest(
6 PhutilOpaqueEnvelope $envelope,
7 PhabricatorAuthPassword $password);
9 /**
10 * Return a list of strings which passwords associated with this object may
11 * not be similar to.
13 * This method allows you to prevent users from selecting their username
14 * as their password or picking other passwords which are trivially similar
15 * to an account or object identifier.
17 * @param PhabricatorUser The user selecting the password.
18 * @param PhabricatorAuthPasswordEngine The password engine updating a
19 * password.
20 * @return list<string> Blocklist of nonsecret identifiers which the password
21 * should not be similar to.
23 public function newPasswordBlocklist(
24 PhabricatorUser $viewer,
25 PhabricatorAuthPasswordEngine $engine);