diff options
| author | Adam Soltys <[email protected]> | 2024-01-23 15:22:05 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-01-23 15:22:08 -0800 |
| commit | 9c7d46dbd78e4ba217adbc9d48fbd6e91f5fad99 (patch) | |
| tree | 7637d90396c0006527c44a0e69cf6f2f2a7aa0b3 /lib/auth.js | |
| parent | 05967b7d4b004860113ea44cf1b01b9135437f1e (diff) | |
| download | coinos-server-9c7d46dbd78e4ba217adbc9d48fbd6e91f5fad99.tar.gz coinos-server-9c7d46dbd78e4ba217adbc9d48fbd6e91f5fad99.zip | |
format
Diffstat (limited to 'lib/auth.js')
| -rw-r--r-- | lib/auth.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/auth.js b/lib/auth.js index 1eca2fa5..944cc3b2 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -22,8 +22,7 @@ export const auth = { }; export const requirePin = async ({ body, user }) => { - if (!user || (user.pin && user.pin !== body.pin)) - fail("Invalid pin"); + if (!user || (user.pin && user.pin !== body.pin)) fail("Invalid pin"); }; export const jwtStrategy = new jwt.Strategy( |
