This commit is contained in:
parent
04f4441ddd
commit
ddf4647215
|
|
@ -166,6 +166,7 @@ namespace NP.Base.Controllers
|
|||
return JsonOK(u129 * -1);
|
||||
}
|
||||
u.userpass = NP.Base.Lib.KISA_SHA256.SHA256Hash(u.userpass.Trim());
|
||||
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;
|
||||
u.usertype = u.status = 1;
|
||||
Dao.Insert("users.in", u);
|
||||
return JsonOK(u.userno);
|
||||
|
|
|
|||
|
|
@ -299,13 +299,13 @@
|
|||
,asno,pasname,depart,ccposition,ccpositionetc,fgnoprofile,ccjobs
|
||||
,userpno,bankname,bankno
|
||||
,post,address1,address2,introhtml,status,logintime,send335time,pwcalltime,pwcallno,eastereggkey,eetime,kfcfyear,isassignuser,edus
|
||||
,isacceptmobile,uduty,slevel,jointype,birthday,snsid,rrnum,di,ci,vssn,<include refid="sql.inc"></include>)
|
||||
,isacceptmobile,uduty,slevel,jointype,birthday,snsid,di,ci,vssn,<include refid="sql.inc"></include>)
|
||||
values (#usertype#,#userkind#,#userid#,#userpass#,#username#,#usernameeng#
|
||||
,gender,HEX(AES_ENCRYPT(#email#, <include refid="sql.digest"></include>)),#isacceptemail#,HEX(AES_ENCRYPT(#mobile#, <include refid="sql.digest"></include>)),HEX(AES_ENCRYPT(#telno#, <include refid="sql.digest"></include>))
|
||||
,#asno#,#pasname#,#depart#,#ccposition#,#ccpositionetc#,#fgnoprofile#,#ccjobs#
|
||||
,HEX(AES_ENCRYPT(#userpno#, <include refid="sql.digest"></include>)),#bankname#,HEX(AES_ENCRYPT(#bankno#, <include refid="sql.digest"></include>))
|
||||
,#post#,#address1#,#address2#,#introhtml#,#status#,<include refid="sql.now"></include>,null,null,null,null,null,#kfcfyear#,#isassignuser#,#edus#
|
||||
,#isacceptmobile#,#uduty#,#slevel#,#jointype#,HEX(AES_ENCRYPT(#birthday#, <include refid="sql.digest"></include>)),#snsid#,HEX(AES_ENCRYPT(#rrnum#, <include refid="sql.digest"></include>)),#di#,#ci#,#vssn#,<include refid="sql.inv"></include>);
|
||||
,#isacceptmobile#,#uduty#,#slevel#,#jointype#,HEX(AES_ENCRYPT(#birthday#, <include refid="sql.digest"></include>)),#snsid#,#di#,#ci#,#vssn#,<include refid="sql.inv"></include>);
|
||||
|
||||
<selectKey type="post" property="userno" resultClass="int">SELECT LAST_INSERT_ID()</selectKey>
|
||||
</insert>
|
||||
|
|
@ -375,7 +375,7 @@
|
|||
</select>
|
||||
<select id="users.usersall" parameterClass="string" resultClass="users">
|
||||
select
|
||||
userno,usertype,jointype,snsid,userkind,userid,userpass,username,usernameeng,rrnum,gender,birthday,email,isacceptemail,mobile,isacceptmobile,telno,asno,pasname,depart,ccposition,ccpositionetc,fgnoprofile
|
||||
userno,usertype,jointype,snsid,userkind,userid,userpass,username,usernameeng,gender,birthday,email,isacceptemail,mobile,isacceptmobile,telno,asno,pasname,depart,ccposition,ccpositionetc,fgnoprofile
|
||||
,ccjobs,userpno,bankname,bankno,post,address1,address2,introhtml,status,exitreason,logintime,loginkey,send335time,pwcalltime,pwcallno,eastereggkey,eetime,kfcfyear,isassignuser,uduty,slevel,edus,remotekey
|
||||
from users
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -41,10 +41,11 @@ else
|
|||
@Html.HiddenFor(w => w.User.jointype)
|
||||
@Html.HiddenFor(w => w.IsSaveOK)
|
||||
<input type="hidden" name="jointype" id="jointype" value="@(Model.User.jointype)" />
|
||||
<input type="hidden" name="birthday" id="birthday" value="@(Model.User.birthday)" />
|
||||
<input type="hidden" name="di" id="di" value="@(Model.User.di)" />
|
||||
<input type="hidden" name="ci" id="ci" value="@(Model.User.ci)" />
|
||||
<input type="hidden" name="vssn" id="vssn" value="@(Model.User.vssn)" />
|
||||
<input type="hidden" name="rrnum" id="rrnum" />
|
||||
<input type="hidden" name="userpno" id="userpno" />
|
||||
<input type="hidden" name="intval" id="intval" value="0" />
|
||||
<div class="joinForm">
|
||||
<ul>
|
||||
|
|
@ -61,9 +62,9 @@ else
|
|||
<li><input type="password" id="userpass2" placeholder="비밀번호확인"></li>
|
||||
<li>
|
||||
<ul class="jnNum">
|
||||
<li><input type="text" id="rrnum1" value="@((Model.User.birthday ?? "").Substring(2))" @(!string.IsNullOrEmpty(Model.User.birthday) ? Html.Raw("readonly=\"\" style=\"background-color:#ddd;\"") : Html.Raw(""))></li>
|
||||
<li><input type="text" id="userpno1" maxlength="6" class="int nocomma" value="@((Model.User.birthday ?? "").Substring(2))" @(!string.IsNullOrEmpty(Model.User.birthday) ? Html.Raw("readonly=\"\" style=\"background-color:#ddd;\"") : Html.Raw(""))></li>
|
||||
<li>-</li>
|
||||
<li><input type="tel" id="rrnum2" placeholder="주민등록번호 뒤 7자리"></li>
|
||||
<li><input type="tel" id="userpno2" maxlength="7" class="int nocomma" placeholder="주민등록번호 뒤 7자리"></li>
|
||||
</ul>
|
||||
</li>
|
||||
@*인증완료상태여도 재인증 가능*@
|
||||
|
|
@ -130,7 +131,7 @@ else
|
|||
});
|
||||
function save() {
|
||||
setv("userid", val("userid").replace(/ /, '').replace(/ /, ''));
|
||||
setv("rrnum", val("rrnum1").replace(/ /, '').replace(/ /, '') + "" + val("rrnum2").replace(/ /, '').replace(/ /, ''));
|
||||
setv("userpno", val("userpno1").replace(/ /, '').replace(/ /, '') + "" + val("userpno2").replace(/ /, '').replace(/ /, ''));
|
||||
setv("userpass", val("userpass").replace(/ /, '').replace(/ /, ''));
|
||||
setv("username", val("username").replace(/ /, '').replace(/ /, ''));
|
||||
setv("email", val("email").replace(/ /, '').replace(/ /, ''));
|
||||
|
|
@ -147,8 +148,8 @@ else
|
|||
else if (check("userpass", null, "비밀번호를 입력해주세요.")) { }
|
||||
else if (!ispassword(val("userpass"))) { focus("userpass"); msg("(8자 이상, 영문/숫자/특수기호 포함) 규칙으로 비밀번호를 입력해주세요."); }
|
||||
else if (val("userpass") != val("userpass2")) { focus("userpass2"); msg("비밀번호 확인이 다릅니다."); }
|
||||
else if (check("rrnum", null, "주민등록번호를 입력해주세요")) { }
|
||||
else if (getBytes(val("rrnum")) != 13) { focus("rrnum2"); msg("주민등록번호를 확인해주세요");}
|
||||
else if (check("userpno", null, "주민등록번호를 입력해주세요")) { }
|
||||
else if (getBytes(val("userpno1")) != 6 || getBytes(val("userpno2")) != 7) { focus("userpno2"); msg("주민등록번호를 확인해주세요"); }
|
||||
else if (!ismobilenumber(val("mobile"))) {focus("mobile");msg("핸드폰번호를 확인해주세요.");}
|
||||
else if (check("post", null, "우편번호를 등록해주세요.") || check("address1", null, "우편번호를 등록해주세요.") || check("address2", null, "우편번호를 등록해주세요.")) { }
|
||||
else if (check("asno", null, "직장을 등록해주세요.")) { }
|
||||
|
|
|
|||
|
|
@ -2096,9 +2096,9 @@ html.lock, body.lock {display:block; width:100%; height:100%; overflow:hidden;}
|
|||
.jnStep li:nth-child(1).current span:before {background: url('../../img/common/join_step01_on.png')no-repeat center center;}
|
||||
.jnStep li:nth-child(2).current span:before {background: url('../../img/common/join_step02_on.png')no-repeat center center;}
|
||||
.jnStep li:nth-child(3).current span:before {background: url('../../img/common/join_step03_on.png')no-repeat center center;}
|
||||
.jnSel {margin: 0 -30px; padding-top: 50px;}
|
||||
.jnSel {margin: 0 -30px; padding-top: 50px; text-align:center;}
|
||||
.jnSel:after {content: ''; display: table; clear: both;}
|
||||
.jnSel > div {float: left; width: 33.3333%; padding: 0 30px;}
|
||||
.jnSel > div {/*float: left;*/ width: 33.3333%; padding: 0 30px; display:inline-block;}
|
||||
.jnsCont {background: #f8f8f8; border: solid 1px #e1e1e1; text-align: center; padding: 50px 0;}
|
||||
.jnsCont img {}
|
||||
.jnsCont p {font-size: 14pt; font-weight: 500; margin: 20px 0;}
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue