This commit is contained in:
Thomas Forgione 2019-03-28 14:30:45 +01:00
parent e2bbdd234f
commit 69115d9d79
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}
}