Refactoring

This commit is contained in:
Felix Klement committed 2026-10-09 14:28:57 +02:00
1 parent fd58a8d32f
commit 97e219456d
29 files changed
+45 -408

No files matched your search

+2 -2
View File
@@ -282,7 +282,7 @@ async function notify(req, res, form, lang) {
}
/** Step two: the link is opened; the confirmed registration goes to the office. */
async function verify(req, res, query) {
async function verify(res, query) {
const t = unsign(query.get('t'));
const lang = t?.lang === 'de' ? 'de' : 'en';
const now = Date.now();
@@ -334,7 +334,7 @@ const server = createServer(async (req, res) => {
return;
}
if (path === '/notify/verify' && req.method === 'GET') {
await verify(req, res, new URLSearchParams(search));
await verify(res, new URLSearchParams(search));
return;
}
const route = ROUTES[path];