Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorUser.php
| Show First 20 Lines • Show All 1,659 Lines • ▼ Show 20 Lines | public function newPasswordDigest( | ||||
| $digest = PhabricatorHash::digestHMACSHA256( | $digest = PhabricatorHash::digestHMACSHA256( | ||||
| $envelope->openEnvelope(), | $envelope->openEnvelope(), | ||||
| $password->getPasswordSalt()); | $password->getPasswordSalt()); | ||||
| return new PhutilOpaqueEnvelope($digest); | return new PhutilOpaqueEnvelope($digest); | ||||
| } | } | ||||
| public function newPasswordBlocklist( | |||||
| PhabricatorUser $viewer, | |||||
| PhabricatorAuthPasswordEngine $engine) { | |||||
| $list = array(); | |||||
| $list[] = $this->getUsername(); | |||||
| $list[] = $this->getRealName(); | |||||
| $emails = id(new PhabricatorUserEmail())->loadAllWhere( | |||||
| 'userPHID = %s', | |||||
| $this->getPHID()); | |||||
| foreach ($emails as $email) { | |||||
| $list[] = $email->getAddress(); | |||||
| } | |||||
| return $list; | |||||
| } | |||||
| } | } | ||||