Basic user management

This commit is contained in:
th.guenther committed 2026-02-05 00:46:22 +01:00
1 parent e280fcfba8
commit 11108bdfcc
55 files changed
+1524 -54

No files matched your search

@@ -0,0 +1,21 @@
<?php
namespace App\Domains\UserManagement\Actions\UserActivation;
class UserDeactivationCommand {
private UserDeactivationRequest $request;
public function __construct(UserDeactivationRequest $request) {
$this->request = $request;
}
public function execute() : UserDeactivationResponse {
$response = new UserDeactivationResponse();
$this->request->user->active = false;
$this->request->user->password = NULL;
$this->request->user->username = 'deleted-' . $this->request->user->username;
$this->request->user->email = 'null@example.com';
$this->request->user->save();
$response->success = true;
return $response;
}
}