Merge pull request #2599 from FinnStutzenstein/Issue2118
check for cookies (closes #2118)
This commit is contained in:
commit
7aa110aca6
@ -1295,7 +1295,8 @@ angular.module('OpenSlidesApp.users.site', [
|
|||||||
'$http',
|
'$http',
|
||||||
'$stateParams',
|
'$stateParams',
|
||||||
'operator',
|
'operator',
|
||||||
function ($rootScope, $scope, $http, $stateParams, operator ) {
|
'gettext',
|
||||||
|
function ($rootScope, $scope, $http, $stateParams, operator, gettext) {
|
||||||
$scope.alerts = [];
|
$scope.alerts = [];
|
||||||
|
|
||||||
// get login info-text from server
|
// get login info-text from server
|
||||||
@ -1307,6 +1308,14 @@ angular.module('OpenSlidesApp.users.site', [
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// check if cookies are enabled
|
||||||
|
if (!navigator.cookieEnabled) {
|
||||||
|
$scope.alerts.push({
|
||||||
|
type: 'danger',
|
||||||
|
msg: gettext('You have to enable cookies to use OpenSlides.'),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// close alert function
|
// close alert function
|
||||||
$scope.closeAlert = function(index) {
|
$scope.closeAlert = function(index) {
|
||||||
$scope.alerts.splice(index, 1);
|
$scope.alerts.splice(index, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user