Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

feat: #511 log user logged in (#1405)

Manuelb294bf68cf4e
diff --git a/packages/auth/events.ts b/packages/auth/events.ts
index dab667519..2c636d14b 100644
--- a/packages/auth/events.ts
+++ b/packages/auth/events.ts
@@ -51,6 +51,8 @@ export const createSignInEventHandler = (db: Database): Exclude<NextAuthConfig["
);
}
+ logger.info(`User '${dbUser.name}' logged in at ${dayjs().format()}`);
+
// We use a cookie as localStorage is not shared with server (otherwise flickering would occur)
cookies().set(colorSchemeCookieKey, dbUser.colorScheme, {
path: "/",