overhaul chat structure

This commit is contained in:
Frederik Spirgi
2026-09-09 09:44:30 +02:00
parent 1ed0226b69
commit 5543deb142
16 changed files with 203 additions and 578 deletions
+2
View File
@@ -27,6 +27,8 @@ export function createAuthRouter({repositories, authRateLimiters, config}) {
const hashed = await bcrypt.hash(password, 10);
repositories.insertUser(username, hashed);
req.session.user = username;
req.session.sessionVersion = 0;
return res.json({message: "Registration successful"});
});