aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-28 15:24:48 -0800
committerAdam Soltys <[email protected]>2026-02-28 15:24:48 -0800
commitcaf1f126d0569670712e26fa2f6ac3127605cd91 (patch)
tree01a5ef46d8bd9d6157a7a1961b803a8f907f4f46 /routes
parent32f01e3e328db0006a55c6324625b49d60244b66 (diff)
downloadcoinos-server-caf1f126d0569670712e26fa2f6ac3127605cd91.tar.gz
coinos-server-caf1f126d0569670712e26fa2f6ac3127605cd91.zip
hash pins
Diffstat (limited to 'routes')
-rw-r--r--routes/users.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.ts b/routes/users.ts
index 1d0f9bcb..4d07a288 100644
--- a/routes/users.ts
+++ b/routes/users.ts
@@ -272,7 +272,7 @@ export default {
}
if (user.pin && !(pin === user.pin)) fail("Pin required");
- if (typeof newpin !== "undefined" && newpin.length === 6) user.pin = newpin;
+ if (typeof newpin !== "undefined" && (newpin.length === 6 || newpin.length === 64)) user.pin = newpin;
if (user.pin === "delete") user.pin = undefined;
if (username) {