fixed session domain issue
This commit is contained in:
parent
e6584ff61b
commit
98d63bbb23
@ -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',
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user