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