Skip to content

Fix EZP-26168: User profile edits break change password #1253

Open
paulborgermans wants to merge 1 commit intoezsystems:masterfrom
paulborgermans:Fix-EZP-26168-password-resets
Open

Fix EZP-26168: User profile edits break change password #1253
paulborgermans wants to merge 1 commit intoezsystems:masterfrom
paulborgermans:Fix-EZP-26168-password-resets

Conversation

@paulborgermans
Copy link
Contributor

... and forgot password functionality

See also https://jira.ez.no/browse/EZP-26168

To correct existing records, the contentobject_attribute table needs to be cleared for historical draft data in the data_text column for published objects, for example:

  1. View those affected records:
SELECT ezco.id, ezcoa.data_text FROM ezcontentobject ezco, ezcontentobject_attribute ezcoa 
WHERE ezco.id=ezcoa.contentobject_id
 AND ezcoa.data_text <> '' 
 AND ezcoa.data_type_string = 'ezuser' and ezco.status=1;
  1. Clear affected records
UPDATE ezcontentobject ezco, ezcontentobject_attribute ezcoa SET ezcoa.data_text='' 
WHERE ezco.id=ezcoa.contentobject_id 
 AND ezcoa.data_text <> '' 
 AND ezcoa.data_type_string = 'ezuser' and ezco.status=1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant