fixed session domain issue

This commit is contained in:
David Baldwynn 2015-11-03 13:01:07 -08:00
parent e6584ff61b
commit 98d63bbb23
2 changed files with 5 additions and 2 deletions

View file

@ -9,6 +9,9 @@ angular.module('forms').config(['$stateProvider',
state('listForms', {
url: '/forms',
templateUrl: 'modules/forms/views/list-forms.client.view.html',
data: {
permissions: [ 'editForm' ]
}
}).
state('submitForm', {
url: '/forms/:formId',

View file

@ -7,8 +7,8 @@ angular.module('users').config(['$httpProvider',
return {
responseError: function(response) {
// console.log($location.path());
if( $location.path() !== '/users/me' && $location.path() !== '/forms' && response.config){
if(response.config.url !== '/users/me' && response.config.url !== '/forms'){
if( $location.path() !== '/users/me' && response.config){
if(response.config.url !== '/users/me'){
console.log('intercepted rejection of ', response.config.url, response.status);
if (response.status === 401) {
// save the current location so that login can redirect back