check for cookies (closes #2118)
This commit is contained in:
parent
2824a6b3d2
commit
410ac00a44
@ -1295,7 +1295,8 @@ angular.module('OpenSlidesApp.users.site', [
|
||||
'$http',
|
||||
'$stateParams',
|
||||
'operator',
|
||||
function ($rootScope, $scope, $http, $stateParams, operator ) {
|
||||
'gettext',
|
||||
function ($rootScope, $scope, $http, $stateParams, operator, gettext) {
|
||||
$scope.alerts = [];
|
||||
|
||||
// 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
|
||||
$scope.closeAlert = function(index) {
|
||||
$scope.alerts.splice(index, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user