Commit 8f57f19e authored by Gerald Salin's avatar Gerald Salin
Browse files

#60 creation of user failed

parent 7a9c9755
......@@ -240,7 +240,13 @@ Files impacted of:
* @return hashed password
*/
static function hash_password($password){
return tx_saltedpasswords_salts_factory::getSaltingInstance()->getHashedPassword($password);
if (\TYPO3\CMS\Saltedpasswords\Utility\SaltedPasswordsUtility::isUsageEnabled('FE')) {
$objSalt = \TYPO3\CMS\Saltedpasswords\Salt\SaltFactory::getSaltingInstance(NULL);
if (is_object($objSalt)) {
$saltedPassword = $objSalt->getHashedPassword($password);
}
}
return $saltedPassword;
}
static function get_ssh_connection($user_login, $user_pwd){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment