diff --git a/ui/javascripts/app/controllers.js b/ui/javascripts/app/controllers.js index bbf49dd58c..0fb6ef5bba 100644 --- a/ui/javascripts/app/controllers.js +++ b/ui/javascripts/app/controllers.js @@ -501,6 +501,7 @@ App.SettingsController = Ember.ObjectController.extend({ if (window.confirm("Are your sure you want to reset your settings?")) { localStorage.clear(); controller.set('content', App.Settings.create()); + App.set('settings.token', ''); notify('Settings reset', 3000); this.set('isLoading', false); } diff --git a/ui/javascripts/app/router.js b/ui/javascripts/app/router.js index 7bcc580819..77a4a8421b 100644 --- a/ui/javascripts/app/router.js +++ b/ui/javascripts/app/router.js @@ -8,6 +8,7 @@ Ember.Application.initializer({ initialize: function(container, application) { application.set('settings', App.Settings.create()); + App.set('settings.token', ''); } });