Skip to content
Snippets Groups Projects

Feature upgrade to9 lts

Merged Kevin Ditscheid requested to merge feature_UpgradeTo9LTS into master
Compare and Show latest version
12 files
+ 112
70
Compare changes
  • Side-by-side
  • Inline
Files
12
+ 7
2
@@ -28,6 +28,7 @@ namespace SGalinski\SgAccount\Backend;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use SGalinski\SgAccount\Service\BaseService;
use TYPO3\CMS\Core\Http\Response;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
@@ -49,13 +50,17 @@ class Ajax {
* @param ResponseInterface $response
* @return ResponseInterface
* @throws \InvalidArgumentException
* @throws \Exception
*/
public function generatePassword(
ServerRequestInterface $request,
ResponseInterface $response
ResponseInterface $response = NULL
) {
if ($response === NULL) {
$response = new Response();
}
$this->baseService = GeneralUtility::makeInstance(BaseService::class);
$response->getBody()->write($this->baseService->generatePassword());
return $response;
}
}
\ No newline at end of file
}
Loading