hash poster passwords

This commit is contained in:
fowr
2024-06-20 10:11:47 -03:00
parent 021e20f373
commit fff9b88c6d
6 changed files with 38 additions and 8 deletions

View File

@@ -3089,3 +3089,9 @@ function check_thread_limit($post) {
return $r['count'] >= $config['max_threads_per_hour'];
}
}
function hashPassword($password) {
global $config;
return hash('sha3-256', $password . $config['secure_password_salt']);
}