improve security (#2661)

* disable basic auth when password auth disabled

* clarify otl security
This commit is contained in:
Bernd Storath
2026-06-12 15:55:22 +02:00
committed by GitHub
parent bb5aff1919
commit 66b292b11b
3 changed files with 23 additions and 0 deletions
+7
View File
@@ -14,6 +14,13 @@ export default defineEventHandler(async (event) => {
});
}
if (new Date() > new Date(otl.expiresAt)) {
throw createError({
statusCode: 410,
statusMessage: 'One Time Link has expired',
});
}
const client = await Database.clients.get(otl.id);
if (!client) {
throw createError({