Commit b934c1e344a46675024be0015bc4f19985853fdf

Authored by Andrew Buss
1 parent b12a561327

fix broken RCE

Showing 2 changed files with 2 additions and 1 deletions Side-by-side Diff

scripts/RootController.js View file @ b934c1e
... ... @@ -43,7 +43,7 @@
43 43 console.log('got websocket message ' + e.data);
44 44 data = JSON.parse(e.data);
45 45 if (data.event_type == 'reload') {
46   - Materialize.toast('This page will refresh in 10 seconds. Sorry for the inconvenience!', 10000, function () {
  46 + Materialize.toast('This page will refresh in 10 seconds and clear the template cache. Sorry for the inconvenience!', 10000, '', function () {
47 47 $templateCache.removeAll();
48 48 $window.location.reload();
49 49 });
scripts/UserService.js View file @ b934c1e
... ... @@ -42,6 +42,7 @@
42 42 return rv;
43 43 };
44 44 this.redirectToDefaultState = function($state) {
  45 + console.log('redirecting user to their default state');
45 46 if (!this.isLoggedIn()) return $state.go('login');
46 47 if (!_user.sections.length) return $state.go('addclass');
47 48 last_state = localStorage.getItem('last_state');