Fix bug
This commit is contained in:
parent
e2bbdd234f
commit
69115d9d79
|
@ -299,6 +299,12 @@ function startServer() {
|
||||||
// will move the old one to the old directories, and save
|
// will move the old one to the old directories, and save
|
||||||
// the new one
|
// the new one
|
||||||
fs.renameSync(path, movePath);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue