File: phpbb/console/command/fixup/update_hashes.php
Unmodified
Added
Modified
Removed
Line 99 | Line 99 |
---|
while ($row = $this->db->sql_fetchrow($result)) {
|
while ($row = $this->db->sql_fetchrow($result)) {
|
$new_hash = $this->passwords_manager->hash($row['user_password'], array($this->default_type));
| $old_hash = preg_replace('/^\$CP\$/', '', $row['user_password']); $new_hash = $this->passwords_manager->hash($old_hash, array($this->default_type));
|
$sql = 'UPDATE ' . USERS_TABLE . " SET user_password = '" . $this->db->sql_escape($new_hash) . "'
| $sql = 'UPDATE ' . USERS_TABLE . " SET user_password = '" . $this->db->sql_escape($new_hash) . "'
|