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.