This commit is contained in:
parent
742d1c5b80
commit
c0f799bf90
|
|
@ -0,0 +1,84 @@
|
||||||
|
@model NP.Model.VMUser
|
||||||
|
@{
|
||||||
|
Layout = "~/Views/Shared/_PopupLayout.cshtml";
|
||||||
|
}
|
||||||
|
<div>
|
||||||
|
<section id="content">
|
||||||
|
<section class="vbox bg-white">
|
||||||
|
<div class="well m-t">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 text-center">
|
||||||
|
<h4>개인정보 보호를 위해 비밀번호를 변경해주세요.</h4>
|
||||||
|
<p>
|
||||||
|
비밀번호를 변경하신지 90일이 지났습니다.<br>
|
||||||
|
안전한 사용을 위하여 기존 비밀번호를 변경해야 합니다.<br>
|
||||||
|
아래에 새 비밀번호를 입력해주세요.<br>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<form action="" method="post" id="mform">
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="form-group text-center">
|
||||||
|
<label class="col-sm-4 col-md-2 control-label">비밀번호</label>
|
||||||
|
<div class="col-sm-8 col-md-10">@Html.PasswordFor(m => m.User.userpass, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "20" })</div>
|
||||||
|
<br />
|
||||||
|
<label class="col-sm-4 col-md-2 control-label">비밀번호확인</label>
|
||||||
|
<div class="col-sm-8 col-md-10">@Html.PasswordFor(m => m.stringval, new { @class = "form-control disp-init", @style = "width: 300px;", @maxlength = "20" })</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@Html.HiddenFor(w => w.User.userno)
|
||||||
|
</form>
|
||||||
|
</section>
|
||||||
|
<div class="botfixempty"> </div>
|
||||||
|
<div class="form-group botfix">
|
||||||
|
<a href="#" class="btn btn-primary" onclick="save(1);">비밀번호 변경</a>
|
||||||
|
<a href="#" class="btn btn-default" onclick="save(0);">다음에 변경하기</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<form id="dform" method="post" action="/user/pwchange">
|
||||||
|
@Html.Partial("./Partial/DForm", Model, new ViewDataDictionary { { "preform", 1 } })
|
||||||
|
</form>
|
||||||
|
@section styles{
|
||||||
|
<style>
|
||||||
|
.botfix {
|
||||||
|
margin-left: -20px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
}
|
||||||
|
@section scriptsHeader{
|
||||||
|
}
|
||||||
|
@section scripts{
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
});
|
||||||
|
|
||||||
|
function save(issave) {
|
||||||
|
|
||||||
|
if (issave == 1 && check("User_userpass", null, "새로운 비밀번호를 입력해주세요.")) { }
|
||||||
|
else if (issave == 1 && check("stringval", null, "비밀번호 확인을 입력해주세요.")) { }
|
||||||
|
else if (issave == 1 && val("User_userpass") != val("stringval")) { focus("stringval"); msg("입력해주신 비밀번호가 서로 다릅니다. 다시 확인해주세요."); }
|
||||||
|
else if (issave == 1 && !ispass(val("User_userpass"))) { msg("비밀번호는 영문, 숫자, 특수문자를 조합하여 8자리 이상으로 사용해야 합니다."); }
|
||||||
|
else if (issave == 0 || confirm("변경하시겠습니까?")) {
|
||||||
|
capfileform("/acommon/pwchange", "mform", "cbsave(" + issave + ")");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
function cbsave(issave) {
|
||||||
|
|
||||||
|
if (capResult.code == 1000) {
|
||||||
|
if (issave == 1) {
|
||||||
|
msg("변경되었습니다.");
|
||||||
|
}
|
||||||
|
setTimeout(function () {
|
||||||
|
goparent();
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
msgdev();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue