| Total Complexity | 1 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class SecurityController |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @OpenApi\Post( |
||
| 14 | * tags={"security"}, |
||
| 15 | * summary="User login.", |
||
| 16 | * @OpenApi\Parameter( |
||
| 17 | * name="body", |
||
| 18 | * in="body", |
||
| 19 | * required=true, |
||
| 20 | * @OpenApi\Schema(ref="#/definitions/SecurityLogin") |
||
| 21 | * ), |
||
| 22 | * @OpenApi\Response( |
||
| 23 | * response=200, |
||
| 24 | * description="Authentication result.", |
||
| 25 | * @OpenApi\Schema(ref="#/definitions/SecurityLoginResult") |
||
| 26 | * ), |
||
| 27 | * @OpenApi\Response( |
||
| 28 | * response=401, |
||
| 29 | * description="Bad credentials." |
||
| 30 | * ) |
||
| 31 | * ) |
||
| 32 | * |
||
| 33 | * @Route("/login", methods={"POST"}, name="security_login") |
||
| 34 | */ |
||
| 35 | public function loginAction() |
||
| 39 |