From caf1f126d0569670712e26fa2f6ac3127605cd91 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 28 Feb 2026 15:24:48 -0800 Subject: hash pins --- routes/users.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes') 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) { -- cgit v1.2.3