Fixes: U4-6736 Log "logout" from Umbraco and also ensures logging is occuring on timeout, logout, login all with Identity stuff.

This commit is contained in:
Shannon
2015-07-23 12:03:50 +02:00
parent 66ca4e48bb
commit b0fb892b16
6 changed files with 121 additions and 36 deletions

View File

@@ -102,7 +102,14 @@ angular.module('umbraco.services')
if (Umbraco.Sys.ServerVariables.umbracoSettings.keepUserLoggedIn !== true) {
//NOTE: the safeApply because our timeout is set to not run digests (performance reasons)
angularHelper.safeApply($rootScope, function () {
userAuthExpired();
try {
//NOTE: We are calling this again so that the server can create a log that the timeout has expired, we
// don't actually care about this result.
authResource.getRemainingTimeoutSeconds();
}
finally {
userAuthExpired();
}
});
}
else {