mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 07:05:24 +00:00
feat: login policy hook for plugins and optional https redirect (#1584)
This commit is contained in:
1 parent
34a9c77114
commit
ad46f42ab1
53 files changed
+15250
-59
No files matched your search
@@ -47,6 +47,10 @@ export const sessions = sqliteTable(
|
||||
lastActiveAt: text("last_active_at")
|
||||
.notNull()
|
||||
.default(sql`CURRENT_TIMESTAMP`),
|
||||
// Set while the session may only set up a second factor.
|
||||
restriction: text("restriction", { length: 32 }),
|
||||
// Seconds without a request before the session ends, from the login policy.
|
||||
idleTimeout: integer("idle_timeout"),
|
||||
},
|
||||
// Listing a user's devices, and the startup sweep of expired rows.
|
||||
(table) => [
|
||||
|
||||
Reference in new issue
Block a user