diff --git a/CHANGES b/CHANGES index 8dff1b05d..97a58af8e 100644 --- a/CHANGES +++ b/CHANGES @@ -2096,4 +2096,5 @@ * Focal support * Fix sorting of user listing in the UI * namecheap: fix crash when server returns invalid response +* unlink ghost file automatically on successful login diff --git a/src/users.js b/src/users.js index c67884088..70101738b 100644 --- a/src/users.js +++ b/src/users.js @@ -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; }