Code Review
/
clamp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Add session timeout page
[clamp.git]
/
src
/
main
/
resources
/
META-INF
/
resources
/
designer
/
scripts
/
authcontroller.js
diff --git
a/src/main/resources/META-INF/resources/designer/scripts/authcontroller.js
b/src/main/resources/META-INF/resources/designer/scripts/authcontroller.js
index
ca91061
..
ac89198
100644
(file)
--- a/
src/main/resources/META-INF/resources/designer/scripts/authcontroller.js
+++ b/
src/main/resources/META-INF/resources/designer/scripts/authcontroller.js
@@
-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");
+ };
}