Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
18 | public function hash($password) |
||
19 | { |
||
20 | if (ExtensionManagementUtility::isLoaded('saltedpasswords')) { |
||
21 | $salter = SaltFactory::getSaltingInstance(null, 'FE'); |
||
22 | $password = $salter->getHashedPassword($password); |
||
23 | |||
24 | if ($this->isValidMd5($password)) { |
||
25 | $password = 'M' . $password; |
||
26 | } |
||
27 | } |
||
28 | |||
29 | return $password; |
||
30 | } |
||
31 | |||
43 | } |