Skip to content

Commit

Permalink
Ensure auth-tokens are removed when no user is specified in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
knolleary committed Jan 21, 2017
1 parent 540472a commit 3fdeb38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/js/settings.js
Expand Up @@ -102,7 +102,7 @@ RED.settings = (function () {
url: 'settings',
success: function (data) {
setProperties(data);
if (RED.settings.user && RED.settings.user.anonymous) {
if (!RED.settings.user || RED.settings.user.anonymous) {
RED.settings.remove("auth-tokens");
}
console.log("Node-RED: " + data.version);
Expand Down

0 comments on commit 3fdeb38

Please sign in to comment.