Add session timeout page
[clamp.git] / src / main / resources / META-INF / resources / designer / scripts / authcontroller.js
index ca91061..ac89198 100644 (file)
@@ -71,5 +71,10 @@ function AuthenticateCtrl($scope, $rootScope, $window, $resource, $http, $locati
       callback && callback();
     });
   };
+  
+  $scope.logout = function() {
+      window.localStorage.removeItem("isAuth");
+      window.localStorage.removeItem("loginuser");
+  };
 
 }