aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib
diff options
context:
space:
mode:
authoryemkareems <yemkareems@gmail.com>2024-06-26 13:13:47 +0530
committeryemkareems <yemkareems@gmail.com>2024-07-08 15:42:55 +0530
commit3615b1f9280bd55fddfc26af2ad45cdd7e7ddf3d (patch)
tree2085dac3103ac8d5266c23e8ebdcf126f9c5461d /apps/provisioning_api/lib
parent4cb85f7c9e37af742d170373602709f8db2d525d (diff)
downloadnextcloud-server-3615b1f9280bd55fddfc26af2ad45cdd7e7ddf3d.tar.gz
nextcloud-server-3615b1f9280bd55fddfc26af2ad45cdd7e7ddf3d.zip
fix: removed csrf check for the recent end point and ran cs fix
Signed-off-by: yemkareems <yemkareems@gmail.com>
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php
index ec57d3e9b23..a68bcfa6b29 100644
--- a/apps/provisioning_api/lib/Controller/UsersController.php
+++ b/apps/provisioning_api/lib/Controller/UsersController.php
@@ -267,7 +267,6 @@ class UsersController extends AUserData {
/**
* @NoAdminRequired
- * @NoCSRFRequired
*
* Get the list of disabled users and their details
*
@@ -281,10 +280,10 @@ class UsersController extends AUserData {
* 200: Users details returned based on last logged in information
*/
public function getLastLoggedInUsers(string $search = '',
- ?int $limit = null,
- int $offset = 0,
- string $sortMode = 'lastLogin',
- string $sortOrder = 'desc'
+ ?int $limit = null,
+ int $offset = 0,
+ string $sortMode = 'lastLogin',
+ string $sortOrder = 'desc'
): DataResponse {
$currentUser = $this->userSession->getUser();
if ($currentUser === null) {