mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
fix: removed csrf check for the recent end point and ran cs fix
Signed-off-by: yemkareems <yemkareems@gmail.com>
This commit is contained in:
parent
4cb85f7c9e
commit
3615b1f928
1 changed files with 4 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue