setelis / angular-se-authentication

Authentication helpers used in some Setelis projects. Navigate to login if 401, after login - go to the state the user was in.
MIT License
0 stars 0 forks source link

seAuthenticationPopup should use SeAuthenticationService for unauthorized checking #2

Closed ptanov closed 8 years ago

ptanov commented 8 years ago

Instead of scope.$watchCollection(function() { return SeNotificationsService.notifications; }, function(newValue) { if (_.some(newValue, {tag: "notifications.SeAuthenticateService.unauthorized", severity: "ERROR"})) { openDropdown(element); } });