fixed session domain issue
This commit is contained in:
parent
e6584ff61b
commit
98d63bbb23
|
@ -9,6 +9,9 @@ angular.module('forms').config(['$stateProvider',
|
||||||
state('listForms', {
|
state('listForms', {
|
||||||
url: '/forms',
|
url: '/forms',
|
||||||
templateUrl: 'modules/forms/views/list-forms.client.view.html',
|
templateUrl: 'modules/forms/views/list-forms.client.view.html',
|
||||||
|
data: {
|
||||||
|
permissions: [ 'editForm' ]
|
||||||
|
}
|
||||||
}).
|
}).
|
||||||
state('submitForm', {
|
state('submitForm', {
|
||||||
url: '/forms/:formId',
|
url: '/forms/:formId',
|
||||||
|
|
|
@ -7,8 +7,8 @@ angular.module('users').config(['$httpProvider',
|
||||||
return {
|
return {
|
||||||
responseError: function(response) {
|
responseError: function(response) {
|
||||||
// console.log($location.path());
|
// console.log($location.path());
|
||||||
if( $location.path() !== '/users/me' && $location.path() !== '/forms' && response.config){
|
if( $location.path() !== '/users/me' && response.config){
|
||||||
if(response.config.url !== '/users/me' && response.config.url !== '/forms'){
|
if(response.config.url !== '/users/me'){
|
||||||
console.log('intercepted rejection of ', response.config.url, response.status);
|
console.log('intercepted rejection of ', response.config.url, response.status);
|
||||||
if (response.status === 401) {
|
if (response.status === 401) {
|
||||||
// save the current location so that login can redirect back
|
// save the current location so that login can redirect back
|
||||||
|
|
Loading…
Reference in a new issue