PageSourceSearch

https://papabu.co.kr/corp/app/controllers/infoModalCtrl.js

js papabu.co.kr collected 2026-10-02 02:00:38 UTC 1,778 bytes, 45 lines download raw bytes

1/**
2 * Created by jack on 16. 2. 18..
3 */
4
5angular.module('infoModalCtrl',[]).controller('infoModalController',function($scope,$location,$window,$cookies,$rootScope,$routeSegment,$http,$modalInstance,appConfig,md5){
6    $scope.$routeSegment = $routeSegment;
7    var app = this;
8    var url = appConfig.url;
9    var currentUser = $cookies.get('currentUser');
10    //var url = "http://papabu.co.kr/corp";
11    //var url = "http://10.10.10.4:3000";
12
13    app.changePwConfirm = function(){
14        if($scope.old_pw == undefined || $scope.old_pw == ''){
15            alert('기존 비밀번호를 입력해 주세요');
16            return;
17        }else if($scope.new_pw == undefined || $scope.new_pw == ''){
18            alert('새 비밀번호를 입력해 주세요');
19            return;
20        }else if($scope.new_pw_confirm == undefined || $scope.new_pw_confirm == ''){
21            alert('비밀번호를 한번 더 입력해 주세요');
22            return;
23        }else if($scope.new_pw != $scope.new_pw_confirm){
24            alert('새로운 비밀번호가 일치하지 않습니다');
25            return;
26        }else{
27            $modalInstance.close(app.changePw());
28        }
29    };
30
31    app.changePwCancel = function () {
32        $modalInstance.dismiss('cancel');
33    };
34
35    app.changePw = function(){
36
37        $http.post(url + '/changePw',{id:currentUser.split('|')[3],old_pw:md5.createHash($scope.old_pw || ''),new_pw:md5.createHash($scope.new_pw || '')}).success(function(resultObj){
38            if(resultObj.result == 'success'){
39                alert('변경되었습니다');
40            }else if(resultObj.result == 'fail' && resultObj.reason == 'not matched pw'){
41                alert('기존 비밀번호가 틀립니다');
42            }
43        });
44    }
45});

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.