From 6a43a4bd20e68d6e3980561807e8919db37b2942 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 17 Sep 2020 10:46:15 -0700 Subject: [PATCH] unlink ghost file automatically on successful login --- CHANGES | 1 + src/users.js | 1 + 2 files changed, 2 insertions(+) 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; }