unlink ghost file automatically on successful login
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user