From 2d7352ed9642ceea8beb32723191eb16d56830a6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 25 Oct 2022 13:55:28 -0700 Subject: require pin on certain endpoints --- routes/send.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routes/send.js') diff --git a/routes/send.js b/routes/send.js index cc277850..591b5ab7 100644 --- a/routes/send.js +++ b/routes/send.js @@ -1,8 +1,10 @@ import { err } from "$lib/logging"; import sendInternal from "$lib/sendInternal"; +import { requirePin } from "$lib/utils"; export default async (req, res, next) => { try { + await requirePin(req); let payment = await sendInternal(req.body, req.user); res.send(payment); } catch (e) { -- cgit v1.2.3