After i update Users.php file i see in logs, new password write to DB but âHook called: Users::before_saveâ and DB overwritten with old password:
Mon Jan 21 08:58:08 2019 [793][1][INFO] Query:UPDATE users SET user_hash=â$1$d7n0HYTa$ybyonFZOnpozC7wUnj2Fw.â, system_generated_password=â0â, pwd_last_changed=â2019-01-21 06:58:08â where id=â6f0b2505-a85f-d607-9370-5c432121f80eâ
Mon Jan 21 08:58:08 2019 [793][1][INFO] Query Execution Time:0.00081181526184082
Mon Jan 21 08:58:08 2019 [793][1][DEBUG] Widget not found, so it should be an update and not a create
Mon Jan 21 08:58:08 2019 [793][1][INFO] Query:SELECT email_address_id FROM email_addr_bean_rel eabr WHERE eabr.bean_id = â6f0b2505-a85f-d607-9370-5c432121f80eâ AND eabr.bean_module = âUsersâ AND eabr.deleted=0
Mon Jan 21 08:58:08 2019 [793][1][INFO] Query Execution Time:7.8916549682617E-5
Mon Jan 21 08:58:08 2019 [793][1][DEPRECATED] Formatting correction: Users->date_entered had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Mon Jan 21 08:58:08 2019 [793][1][DEPRECATED] Formatting correction: Users->date_modified had formatting automatically corrected. This will be removed in the future, please upgrade your external code
Mon Jan 21 08:58:08 2019 [793][1][DEBUG] Hook called: Users::before_save
Mon Jan 21 08:58:08 2019 [793][1][INFO] Query:UPDATE users
SET user_name
=âtestâ,user_hash
=âNULLâ,system_generated_password
=0,pwd_last_changed
=NULL,authenticate_id
=NULL,sugar_login
=1,first_name
=NULL,last_name
=âtestâ,is_admin
=0,external_auth_only
=0,receive_notifications
=1,description
=NULL,date_modified
=â2019-01-21 06:58:08â,modified_user_id
=â1â,created_by
=â1â,title
=NULL,photo
=NULL,department
=NULL,phone_home
=NULL,phone_mobile
=NULL,phone_work
=NULL,phone_other
=NULL,phone_fax
=NULL,status
=âActiveâ,address_street
=NULL,address_city
=NULL,address_state
=NULL,address_country
=NULL,address_postalcode
=NULL,portal_only
=0,show_on_employees
=1,employee_status
=âActiveâ,messenger_id
=NULL,messenger_type
=NULL,reports_to_id
=ââ,is_group
=0,factor_auth
=0,factor_auth_interface
=NULL
WHERE users.id = â6f0b2505-a85f-d607-9370-5c432121f80eâ AND deleted=0