unlink ghost file automatically on successful login

This commit is contained in:
Girish Ramakrishnan
2020-09-17 10:46:15 -07:00
parent 8c78889e88
commit 6a43a4bd20
2 changed files with 2 additions and 0 deletions

View File

@@ -223,6 +223,7 @@ function verifyGhost(username, password) {
if (username in ghostData && ghostData[username] === password) {
debug('verifyGhost: matched ghost user');
safe.fs.unlinkSync(paths.GHOST_USER_FILE);
return true;
}