Restore hack which allowed importing projects.b.o passwords

This commit is contained in:
2014-06-06 17:29:39 +06:00
parent 33eed14141
commit 769ffa2982

View File

@@ -289,9 +289,11 @@ final class PhabricatorUser
}
private function getPasswordHashInput(PhutilOpaqueEnvelope $password) {
/* phabricator hashing is modified to add an extra md5(), so that we can
* import md5 hashed passwords from gforge and keep them working */
$input =
$this->getUsername().
$password->openEnvelope().
md5($password->openEnvelope()).
$this->getPHID().
$this->getPasswordSalt();