From fb20ae7e1a16fe928d1d5409f2ad5be373f0ff8f Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 20 Mar 2021 18:39:12 +0100 Subject: [PATCH] web: sort users by last_login Signed-off-by: Jens Langhammer --- authentik/root/settings.py | 1 + web/src/pages/users/UserListPage.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/authentik/root/settings.py b/authentik/root/settings.py index 37578c44e..78acc5474 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -438,6 +438,7 @@ _LOGGING_HANDLER_MAP = { "kubernetes": "INFO", "asyncio": "WARNING", "aioredis": "WARNING", + "drf_yasg2.utils": "WARNING", } for handler_name, level in _LOGGING_HANDLER_MAP.items(): # pyright: reportGeneralTypeIssues=false diff --git a/web/src/pages/users/UserListPage.ts b/web/src/pages/users/UserListPage.ts index 1b0f5e14b..8418330b8 100644 --- a/web/src/pages/users/UserListPage.ts +++ b/web/src/pages/users/UserListPage.ts @@ -30,7 +30,7 @@ export class UserListPage extends TablePage { } @property() - order = "username"; + order = "last_login"; apiEndpoint(page: number): Promise> { return new CoreApi(DEFAULT_CONFIG).coreUsersList({