PageSourceSearch

https://rekrutacja.pedagogium.pl/pdg-irk-app/content/script/irk/pa…/zapomnianeHasloController.js

js pedagogium.pl collected 2026-10-04 13:34:48 UTC 1,711 bytes, 53 lines download raw bytes

1(function() {
2    'use strict';
3
4	angular
5		.module('irk')
6		.controller('ForgottenPasswordController', ForgottenPasswordController);
7
8	function ForgottenPasswordController($scope, $rootScope, $compile, $document, AUTH_EVENTS, AuthService, $controller, $http, vcRecaptchaService, $location) {
9		angular.extend(this, $controller('IntakeControllerMixin', {$scope: $scope}));
10
11	    $scope.fieldMap = undefined;
12		$scope.zapisz = function() {
13			$scope.save($scope.gidGroupMap);
14		}
15		
16		$scope.save = function(group) {
17		    return $http.post('REST/zapomnianeHaslo/resetuj', {gidGroupMap: group})
18		      .then(function (groupDefinition) {
19		    	  $scope.updateGroup(groupDefinition.data);
20		    	  if(groupDefinition.data.valid) {
21		    		  $location.path('/PotwierdzenieWygenerowaniaNowegoHasla');
22		    	  }
23		      });
24	    };
25		
26		$scope.getGroup = function(group) {
27		    return $http.post('REST/zapomnianeHaslo', {gidGroupMap: group})
28		      .then(function (groupDefinition) {
29		    	  $scope.updateGroup(groupDefinition.data);
30		      });
31	    };
32	    
33	    var original = $scope.updateGroup;
34	    $scope.updateGroup = function(gidGroupMap) {
35	    	  original(gidGroupMap);
36	    	  console.debug(gidGroupMap.gidGroupMap);
37	    	  $scope.fieldMap = gidGroupMap.gidGroupMap.zapomnianehaslointake._0.fieldMap;
38	    	  if(typeof $scope.recaptchaWidgetId !== 'undefined') {
39	    		  vcRecaptchaService.reload($scope.recaptchaWidgetId);
40	    	  }
41	    }
42	    
43	    $scope.setCaptchaResponse = function(response) {
44	    	$scope.fieldMap.Captcha.value = response;
45	    }
46	    
47	    $scope.setWidgetId = function(widgetId) {
48	    	$scope.recaptchaWidgetId = widgetId;
49	    }
50	    
51	    $scope.getGroup();
52	}
53})();

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.