Skip to content

Commit

Permalink
updated account delete
Browse files Browse the repository at this point in the history
Signed-off-by: bidi <[email protected]>
  • Loading branch information
bidi47 committed Sep 4, 2024
1 parent 73ae088 commit a98b5e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/User/src/Form/ProfileDeleteForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function init(): void
],
'options' => [
'label' => 'I want to delete account',
'use_hidden_element' => true,
'use_hidden_element' => false,
'checked_value' => (string) User::IS_DELETED_YES,
'unchecked_value' => (string) User::IS_DELETED_NO,
],
Expand Down
2 changes: 1 addition & 1 deletion src/User/src/InputFilter/ProfileDeleteInputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function init(): void
->attachByName(InArray::class, [
'haystack' => User::IS_DELETED,
'message' => Message::DELETE_ACCOUNT,
'strict' => InArray::COMPARE_STRICT,
'strict' => InArray::COMPARE_NOT_STRICT,
], true)
->attachByName(NotEmpty::class, [
'message' => Message::DELETE_ACCOUNT,
Expand Down
2 changes: 1 addition & 1 deletion src/User/src/Service/UserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function updateUser(User $user, array $data = []): User
}

if (isset($data['isDeleted'])) {
$user->setIsDeleted($data['isDeleted']);
$user->setIsDeleted((bool) $data['isDeleted']);
}

if (isset($data['hash'])) {
Expand Down

0 comments on commit a98b5e3

Please sign in to comment.