diff options
| author | Adam Soltys <[email protected]> | 2023-02-06 16:42:02 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-06 16:42:02 -0800 |
| commit | 6f5602d112b68adb7452abf3047f20c32e7725b6 (patch) | |
| tree | 640903158751d97954cec7b8687f1aa88079305f /index.js | |
| parent | f4c51cddc3d6c45fa1de5fd928b1b2a0f95774f8 (diff) | |
| download | coinos-server-6f5602d112b68adb7452abf3047f20c32e7725b6.tar.gz coinos-server-6f5602d112b68adb7452abf3047f20c32e7725b6.zip | |
auth middleware for disable2fa
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -65,7 +65,7 @@ app.post("/bitcoin/send", auth, payments.send); app.get("/me", auth, users.me); app.get("/users/:key", users.get); app.post("/register", users.create); -app.post("/disable2fa", users.disable2fa); +app.post("/disable2fa", auth, users.disable2fa); app.post("/2fa", auth, users.enable2fa); app.post("/user", auth, users.update); app.post("/upload/:type", auth, users.upload); |
