From aa059527ad7b990c8ae772b1d9f836a18f0d0b91 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sat, 21 Sep 2024 18:40:11 +0200 Subject: [PATCH] test app: fix triplicate route name --- test/_authentication_common.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/_authentication_common.ts b/test/_authentication_common.ts index 58d2e66..5bf2efc 100644 --- a/test/_authentication_common.ts +++ b/test/_authentication_common.ts @@ -71,14 +71,14 @@ export function authAppProvider(withUsername: boolean = true, approvalMode: bool const proof = await PasswordAuthProof.getProofForSession(req.getSession()); if (proof) res.sendStatus(200); else res.sendStatus(404); - }, 'is-auth'); + }, 'has-any-password-auth-proof'); this.get('/has-any-magic-link', async (req, res) => { const proofs = await MagicLink.select() .where('session_id', req.getSession().id) .get(); if (proofs.length > 0) res.sendStatus(200); else res.sendStatus(404); - }, 'is-auth'); + }, 'has-any-magic-link'); } }());