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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user