Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions kernel/classes/datatypes/ezuser/ezusertype.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ function onPublish( $contentObjectAttribute, $contentObject, $publishedNodes )
{
$user = $this->updateUserDraft( $user, $serializedDraft );
}
// clear the serialized draft, otherwise it will override the new password hashes
// from a change or forgot password action upon a new profile/user object versions
$contentObjectAttribute->setAttribute('data_text', '');
$contentObjectAttribute->storeData();

$user->store();
$contentObjectAttribute->setContent( $user );
Expand Down