update
Updates an existing UserCredentials entity in the repository.
This method updates the fields of the existing entity with the values from the provided entity. If certain fields (passwordHash, salt) are empty in the provided entity, the existing values are retained.
Parameters
entity
The UserCredentials entity with updated values.