PageSourceSearch

https://rekrutacja.pedagogium.pl/pdg-irk-app/content/script/irk/pages/wylogowanie/wylogowanieController.js

js pedagogium.pl collected 2026-10-04 13:34:45 UTC 964 bytes, 30 lines download raw bytes

1(function() {
2    'use strict';
3
4    angular
5    	.module('irk')
6    	.controller('WylogowanieController', WylogowanieController);
7    
8    function WylogowanieController($http, $scope, $rootScope, $compile, $document, AUTH_EVENTS, AuthService, vcRecaptchaService, toaster, $location, Session, i18n) {
9		  $scope.logout = function () {
10		    AuthService.logout().then(function (result) {
11		      $location.path('/');
12    		  i18n.get('interfejs.irk.shared.Wylogowano').then(function(komunikat) {
13    			  toaster.pop('success', komunikat);
14    		  });
15		      Session.destroy();
16		    }, function (result) {
17			    toaster.pop('error', result);
18		        $rootScope.$broadcast(AUTH_EVENTS.logoutFailed);
19		    })['finally'](function () {
20		        $scope.reset();
21		    });
22		  };
23		  
24		  this.checkPermission = function() {
25			  return !routePermissionFactory.checkRoutePermission({templateUrl: 'irk.auth.StronaGlowna'});
26		  }
27		  
28		  $scope.logout();
29	}
30})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.