diff --git a/kernel/classes/datatypes/ezuser/ezusertype.php b/kernel/classes/datatypes/ezuser/ezusertype.php index f39b1598bb6..335c52f2835 100644 --- a/kernel/classes/datatypes/ezuser/ezusertype.php +++ b/kernel/classes/datatypes/ezuser/ezusertype.php @@ -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 );