aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
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) {