mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
feature 2727: improve password security with the use of PasswordHash class.
This class performs salt and multiple iterations. Already used in Wordpress, Drupal, phpBB and many other web applications. $conf['pass_convert'] is replaced by $conf['password_hash'] + $conf['password_verify'] git-svn-id: http://piwigo.org/svn/trunk@18889 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -221,7 +221,7 @@ function reset_password()
|
||||
|
||||
single_update(
|
||||
USERS_TABLE,
|
||||
array($conf['user_fields']['password'] => $conf['pass_convert']($_POST['use_new_pwd'])),
|
||||
array($conf['user_fields']['password'] => $conf['password_hash']($_POST['use_new_pwd'])),
|
||||
array($conf['user_fields']['id'] => $user_id)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user