Skip to content
Snippets Groups Projects
Verified Commit b5c5b9d6 authored by Damien's avatar Damien
Browse files

FEAT #7659 Fix history and change pass

parent f8f951b8
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,8 @@ abstract class UserModelAbstract ...@@ -172,7 +172,8 @@ abstract class UserModelAbstract
'table' => 'users', 'table' => 'users',
'set' => [ 'set' => [
'password' => SecurityModel::getPasswordHash($aArgs['password']), 'password' => SecurityModel::getPasswordHash($aArgs['password']),
'password_modification_date' => 'CURRENT_TIMESTAMP' 'password_modification_date' => 'CURRENT_TIMESTAMP',
'change_password' => 'N',
], ],
'where' => ['id = ?'], 'where' => ['id = ?'],
'data' => [$aArgs['id']] 'data' => [$aArgs['id']]
......
...@@ -132,7 +132,7 @@ class PasswordModel ...@@ -132,7 +132,7 @@ class PasswordModel
DatabaseModel::delete([ DatabaseModel::delete([
'table' => 'password_history', 'table' => 'password_history',
'where' => ['id < ?', 'user_serial_id = ?'], 'where' => ['id < ?', 'user_serial_id = ?'],
'data' => [$passwordHistory[8], $aArgs['userSerialId']] 'data' => [$passwordHistory[8]['id'], $aArgs['userSerialId']]
]); ]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment