hash poster passwords

This commit is contained in:
fowr 2024-06-20 10:11:47 -03:00 committed by Zankaria
parent c7bb61f2ff
commit 8b2f002582
6 changed files with 33 additions and 5 deletions

View file

@ -3082,3 +3082,8 @@ function strategy_first($fun, $array) {
return array('defer');
}
}
function hashPassword($password) {
global $config;
return hash('sha3-256', $password . $config['secure_password_salt']);
}