mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
PHRAS-3078 Redirect to Home when session is expired
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import Alerts from "../../../../../../Phraseanet-production-client/src/components/utils/alert";
|
||||
|
||||
var p4 = p4 || {};
|
||||
var datepickerLang = [];
|
||||
|
||||
@@ -116,8 +118,7 @@ var commonModule = (function ($, p4) {
|
||||
showMessages = false;
|
||||
|
||||
if (data.status == 'disconnected' || data.status == 'session') {
|
||||
disconnected();
|
||||
return false;
|
||||
self.location.replace(self.location.href);
|
||||
}
|
||||
if (showMessages) {
|
||||
var box = $('#notification_box');
|
||||
|
@@ -38,7 +38,9 @@ define([
|
||||
},
|
||||
success: function(data){
|
||||
if (data) {
|
||||
commonModule.manageSession(data);
|
||||
if (data.status == 'disconnected' || data.status == 'session') {
|
||||
self.location.replace(self.location.href);
|
||||
}
|
||||
}
|
||||
var t = 120000;
|
||||
if (data.apps && parseInt(data.apps) > 1) {
|
||||
|
Reference in New Issue
Block a user