mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +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');
|
||||
|
Reference in New Issue
Block a user