From 86a330ae8eae3c4600506700a7c95ca2c3903527 Mon Sep 17 00:00:00 2001 From: Per Ploug Krogslund Date: Fri, 28 Jun 2013 14:13:20 +0200 Subject: [PATCH] enabled the security interceptor --- src/Umbraco.Web.UI.Client/src/app_dev.js | 3 +-- .../src/common/security/security.service.js | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/app_dev.js b/src/Umbraco.Web.UI.Client/src/app_dev.js index 7e9f841b47..a743c0881f 100644 --- a/src/Umbraco.Web.UI.Client/src/app_dev.js +++ b/src/Umbraco.Web.UI.Client/src/app_dev.js @@ -1,8 +1,7 @@ var app = angular.module('umbraco', [ 'umbraco.filters', 'umbraco.directives', - 'umbraco.resources', - 'umbraco.mocks', + 'umbraco.mocks.resources', 'umbraco.services', 'umbraco.security' ]); \ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/common/security/security.service.js b/src/Umbraco.Web.UI.Client/src/common/security/security.service.js index bc6406d744..ce4a3ad280 100644 --- a/src/Umbraco.Web.UI.Client/src/common/security/security.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/security/security.service.js @@ -1,4 +1,5 @@ // Based loosely around work by Witold Szczerba - https://github.com/witoldsz/angular-http-auth + angular.module('umbraco.security.service', [ 'umbraco.security.retryQueue', // Keeps track of failed requests that need to be retried once the user logs in 'umbraco.services' @@ -20,6 +21,8 @@ angular.module('umbraco.security.service', [ throw new Error('Trying to open a dialog that is already open!'); } + alert("here a dialog would appear"); + //loginDialog = $dialog.dialog(); //loginDialog.open('security/login/form.tpl.html', 'LoginFormController').then(onLoginDialogClose); }