feat: Add required Terms of Service acceptance to registration, enhance terms page content, and introduce utility scripts for thumbnail and dummy data generation.

This commit is contained in:
x
2026-01-24 16:32:28 +01:00
parent 2ad318e7c5
commit ee416a1d08
4 changed files with 112 additions and 55 deletions

View File

@@ -24,6 +24,9 @@ export default (router, tpl) => {
if (password !== password_confirm) return renderError("Passwords do not match");
if (username.length < 3) return renderError("Username too short");
// Password complexity check
if (password.length < 20) return renderError("Password must be at least 20 characters long");
// Check token
const tokenRow = await db`
select * from invite_tokens where token = ${token} and is_used = false