Skip to content

Commit

Permalink
Updating logout()
Browse files Browse the repository at this point in the history
Setting the _GLOBAL_USER to null
  • Loading branch information
NP authored and NP committed May 22, 2018
1 parent 3120cf4 commit 180d4fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/renderer/app-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ function logout() {
console.log(new Date().toJSON(), _GLOBAL_APP_CONSTANTS.LOG_INFO, "Logout Attempted.");
IPC.send("logout", 1);

// Clear out the User object neccesiating re-authentication.
_GLOBAL_USER = null;

// Remove existing elements
removeServerInput();

Expand Down

0 comments on commit 180d4fa

Please sign in to comment.