From 553f4864eb056ceeb2c6550b9dd820c28eed6192 Mon Sep 17 00:00:00 2001 From: Alex Kern Date: Wed, 12 Aug 2015 05:14:37 -0700 Subject: [PATCH] Change the word length requirements. --- lib/db.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/db.js b/lib/db.js index 245929c..ca70096 100644 --- a/lib/db.js +++ b/lib/db.js @@ -3,12 +3,12 @@ import xkcdPassword from 'xkcd-password' const TOKEN_OPTIONS = { numWords: 4, - minLength: 4, - maxLength: 8 + minLength: 3, + maxLength: 20 } -var tokens = {} -var tokenGenerator = new xkcdPassword() +let tokens = {} +const tokenGenerator = new xkcdPassword() tokenGenerator.initWithWordList(toppings) export function create(socket) {