diff --git a/Base/Controller/FCommonMy.cs b/Base/Controller/FCommonMy.cs index a4fe29b..af21ee4 100644 --- a/Base/Controller/FCommonMy.cs +++ b/Base/Controller/FCommonMy.cs @@ -118,6 +118,7 @@ namespace NP.Base.Controllers telno.Length == 9 ? string.Format("{0}-{1}-{2}", telno.Substring(0, 2), telno.Substring(2, 3), telno.Substring(5, 4)) : telno.Length == 8 ? string.Format("{0}-{1}", telno.Substring(0, 4), telno.Substring(4, 4)) : telno.Length == 7 ? string.Format("{0}-{1}", telno.Substring(0, 3), telno.Substring(3, 4)) : u.telno; + u.birthday = u.birthday != null && u.birthday.Length == 8 ? (u.birthday ?? "").Substring(0, 4) + "-" + (u.birthday ?? "").Substring(4, 2) + "-" + (u.birthday ?? "").Substring(6, 2) : null; var check = Dao.Get("users.checkuser", new Hashtable() { { "usernonot", SUserInfo.UserNo }, { "email", u.email }, { "mobile", u.mobile } }).First(); if (check < 9) { diff --git a/FO/FO.csproj b/FO/FO.csproj index 974baf9..476b5dd 100644 --- a/FO/FO.csproj +++ b/FO/FO.csproj @@ -531,6 +531,7 @@ + diff --git a/FO/Views/Account/CertOk3IPIN.cshtml b/FO/Views/Account/CertOk3IPIN.cshtml index 7a525e7..1ec3455 100644 --- a/FO/Views/Account/CertOk3IPIN.cshtml +++ b/FO/Views/Account/CertOk3IPIN.cshtml @@ -17,6 +17,7 @@ } +
@@ -41,14 +42,18 @@ if ("@(RSLT_NAME)" == $(opener.document).find("#mform").find("#username").val()) { $(opener.document).find("#mform").find("#authplatform").val("@(AuthPlatform.IPIN.GetHashCode())"); - $(opener.document).find("#mform").find("#birthday").val("@(RSLT_BIRTHDAY)"); + $(opener.document).find("#mform").find("#birthday").val("@(RSLT_BIRTHDAY)"); $(opener.document).find("#mform").find("#di").val("@(DI)"); $(opener.document).find("#mform").find("#ci").val("@(CI)"); $(opener.document).find("#mform").find("#vssn").val("@(VSSN)"); $(opener.document).find("#mform").find("#authPlatform_IPIN").show(); $(opener.document).find("#mform").find("#authPlatform_IPIN").css("padding-bottom","0px"); $(opener.document).find("#mform").find("#authPlatform_IPIN_Name").text("I-PIN 인증"); - $(opener.document).find("#mform").find("#authPlatform_Mobile").hide(); + $(opener.document).find("#mform").find("#authPlatform_Mobile").hide(); + try { + $(opener.document).find("#mform").find("#txtbirthday").text(moment("@(RSLT_BIRTHDAY)").format('YYYY.MM.DD')); + } catch (error) { + } alert("인증완료"); } else { alert("입력한 정보와 일치하지 않습니다.\n 재인증해주세요."); diff --git a/FO/Views/Account/CertOk3MOBI.cshtml b/FO/Views/Account/CertOk3MOBI.cshtml index 8ce98d5..dd5fe74 100644 --- a/FO/Views/Account/CertOk3MOBI.cshtml +++ b/FO/Views/Account/CertOk3MOBI.cshtml @@ -17,7 +17,7 @@ var RETURN_MSG = (ViewBag.result ?? "").Split(':')[13]; } - +
@@ -59,12 +59,16 @@ $(opener.document).find("#mform").find("#authPlatform_IPIN").hide(); $(opener.document).find("#mform").find("#authPlatform_Mobile").show(); $(opener.document).find("#mform").find("#authPlatform_Mobile_Name").text("휴대폰 인증"); - $(opener.document).find("#mform").find("#birthday").val("@(RSLT_BIRTHDAY)"); + $(opener.document).find("#mform").find("#birthday").val("@(RSLT_BIRTHDAY)"); $(opener.document).find("#mform").find("#di").val("@(DI)"); $(opener.document).find("#mform").find("#ci").val("@(CI)"); $(opener.document).find("#mform").find("#mobile").val("@(TEL_NO)".replaceAll("-", "")); $(opener.document).find("#mform").find("#mobile").prop("readonly", true); $(opener.document).find("#mform").find("#mobilestr").text("@(TEL_NO)".replaceAll("-", "")); + try { + $(opener.document).find("#mform").find("#txtbirthday").text(moment("@(RSLT_BIRTHDAY)").format('YYYY.MM.DD')); + } catch (error) { + } alert("인증완료"); } else { alert("입력한 정보와 일치하지 않습니다.\n 재인증해주세요."); diff --git a/FO/Views/My/MyInfoCheck.cshtml b/FO/Views/My/MyInfoCheck.cshtml index 6cc9def..abadfb2 100644 --- a/FO/Views/My/MyInfoCheck.cshtml +++ b/FO/Views/My/MyInfoCheck.cshtml @@ -78,10 +78,12 @@ 생년월일 +

@if (!string.IsNullOrEmpty(u.birthday)) { -

@(u.birthday.Replace("-", "."))

+ @(u.birthday.Replace("-", ".")) } +

@@ -222,6 +224,7 @@ @Html.Partial("./Partial/ScriptPost") } @section scripts{ +