Skip to content

Commit

Permalink
Remove password field from detals view (#469)
Browse files Browse the repository at this point in the history
* Remove password field from customer details

* Apply php-cs-fixer changes

* Update src/CustomerView/DefaultCustomerView.php

Co-authored-by: Divesh Pahuja <divesh.pahuja@pimcore.com>

---------

Co-authored-by: aryaantony92 <aryaantony92@users.noreply.github.com>
Co-authored-by: Divesh Pahuja <divesh.pahuja@pimcore.com>
  • Loading branch information
3 people committed May 16, 2023
1 parent e8424fd commit d1d58c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CustomerView/DefaultCustomerView.php
Expand Up @@ -110,7 +110,7 @@ public function getDetailviewData(CustomerInterface $customer)
$vf = $this->viewFormatter;

foreach ($definition->getFieldDefinitions() as $fd) {
if ($fd->getInvisible()) {
if ($fd->getInvisible() || $fd->getFieldtype() === 'password') {
continue;
}

Expand Down

0 comments on commit d1d58c1

Please sign in to comment.