From 69115d9d79735e59d9414e4f14fb003023e4e2f6 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 28 Mar 2019 14:30:45 +0100 Subject: [PATCH] Fix bug --- server.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server.js b/server.js index 133c430..7ef38e0 100644 --- a/server.js +++ b/server.js @@ -299,6 +299,12 @@ function startServer() { // will move the old one to the old directories, and save // the new one fs.renameSync(path, movePath); + + // Don't forget to copy the hashed password. + fs.copyFileSync( + pathtools.join(movePath, "__bcrypt__hash.txt"), + pathtools.join(path, "__bcrypt__hash.txt")); + break; } }