diff options
| author | Adam Soltys <[email protected]> | 2022-10-25 13:55:28 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-25 13:55:32 -0700 |
| commit | 2d7352ed9642ceea8beb32723191eb16d56830a6 (patch) | |
| tree | 0aef2e7bd3d82144708ee62f4d4a2f599f620db2 /routes/send.js | |
| parent | 6128d0ef6cd994807e6b30420be0874f1a8e94ef (diff) | |
| download | coinos-server-2d7352ed9642ceea8beb32723191eb16d56830a6.tar.gz coinos-server-2d7352ed9642ceea8beb32723191eb16d56830a6.zip | |
require pin on certain endpoints
Diffstat (limited to 'routes/send.js')
| -rw-r--r-- | routes/send.js | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |
