OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2022-01-07 ad7e60c5d5a090160c6b9be63c02a75a6c369b91
src/main/webapp/scripts/app/user/userModify.controller.js
@@ -148,6 +148,11 @@
                                    if (result.message.status === "success") {
                                        if (result.data != null) {
                                            $rootScope.user = result.data;  //  전역으로 사용하는 로그인 사용자 정보.
                                            // 전화번호 하이픈 추가하여 조회
                                            $scope.vm.phone = $rootScope.user.phone;
                                            let hyphen = $scope.vm.phone.trim();
                                            let phone = hyphen.replace(/(^02.{0}|^01.{1}|[0-9]{3})([0-9]+)([0-9]{4})/,"$1-$2-$3");
                                            $rootScope.user.phone = phone;
                                        }
                                        else {
                                            throw {message: $filter("translate")("users.notExistUserSession")}; // "사용자 세션이 존재하지 않습니다."