Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Pour information : coupure de la forge ce matin entre 6h45 et 7h05 pour une mise à jour de sécurité
Open sidebar
genotoul-bioinfo
ng6
Commits
054b6282
Commit
054b6282
authored
Apr 28, 2021
by
gsalin
Browse files
correct hash_password method
parent
dff01ecc
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/nG6/lib/class.tx_nG6_utils.php
View file @
054b6282
...
...
@@ -298,16 +298,9 @@ $template_mail.='<p>Yours sincerely</p>
* @return hashed password
*/
static
function
hash_password
(
$password
){
$hashInstance
=
GeneralUtility
::
makeInstance
(
PasswordHashFactory
::
class
)
->
getDefaultHashInstance
(
'FE'
);
$hashInstance
=
TYPO3\CMS\Core\Utility\
GeneralUtility
::
makeInstance
(
PasswordHashFactory
::
class
)
->
getDefaultHashInstance
(
'FE'
);
$hashedPassword
=
$hashInstance
->
getHashedPassword
(
$password
);
// if (\TYPO3\CMS\Crypto\PasswordHashing\SaltedPasswordsUtility::isUsageEnabled('FE')) {
// $objSalt = \TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashFactory::getSaltingInstance(NULL);
// if (is_object($objSalt)) {
// $saltedPassword = $objSalt->getHashedPassword($password);
// }
// }
return
$saltedPassword
;
return
$hashedPassword
;
}
static
function
get_ssh_connection
(
$user_login
,
$user_pwd
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment