$this->userRecoveryService->
generateUserRecovery($email,
$context);
return new Response();
} #[Route(path: '/api/_action/user/user-recovery/hash', defaults: ['auth_required' => false], name: 'api.action.user.user-recovery.hash', methods: ['GET'])]
public function checkUserRecovery(Request
$request, Context
$context): Response
{ $hash =
(string) $request->query->
get('hash'
);
if ($hash !== '' &&
$this->userRecoveryService->
checkHash($hash,
$context)) { return new Response();
} return $this->
getErrorResponse();
} #[Route(path: '/api/_action/user/user-recovery/password', defaults: ['auth_required' => false], name: 'api.action.user.user-recovery.password', methods: ['PATCH'])]
public function updateUserPassword(Request
$request, Context
$context): Response
{ $hash =
(string) $request->request->
get('hash'
);
$password =
(string) $request->request->
get('password'
);