82 lines
2.7 KiB
Plaintext
82 lines
2.7 KiB
Plaintext
<!-- #include virtual = "include/header.asp" -->
|
|
<!-- #include virtual = "include/left.asp" -->
|
|
<!-- Content Wrapper. Contains page content -->
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<div class="content-header">
|
|
<h1>암호 변경</h1>
|
|
</div>
|
|
<!-- /.content-header -->
|
|
<!-- Main content -->
|
|
<div class="content-body">
|
|
<div class="content">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<form name="formLogin" method="post" action="password_Change_ok.asp">
|
|
<table style="width:500px;" class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
|
<tr>
|
|
<td colspan="2" class='text-center p-2 h5'>희망하시는 비밀번호를 기입해 주십시요.</td>
|
|
<tr>
|
|
<td width="30%" class="text-center align-middle" >신규 비밀번호</td>
|
|
<td><input type="password" class='form-control' name="txtPassword_new1"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="text-center align-middle">비밀번호 재입력</td>
|
|
<td><input type="password" class='form-control' name="txtPassword_new2"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class='text-center p-2'><button type="button" class="btn btn-primary" onClick="chk_Login_Ok()">변경</button></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<span class="ml-2 d-block">* 특수문자(!@#$%^&+=) / 영문 / 숫자 포함 형태의 6~15자리 이내로 설정하십시오.</span>
|
|
<span class="ml-2 d-block">* KON에 로그인 하시려면 비밀번호 6자리 이상으로 변경하시기 바랍니다.</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.content -->
|
|
<!-- REQUIRED SCRIPTS -->
|
|
<script>
|
|
function chkPwd(str) {
|
|
var regex = /^.*(?=^.{6,15}$)(?=.*\d)(?=.*[a-zA-Z])(?=.*[!@#$%^&+=]).*$/;
|
|
if (!regex.test(str)) return false;
|
|
return true;
|
|
}
|
|
|
|
function chk_Login_Ok(){
|
|
var form = document.formLogin;
|
|
var aa = form.txtPassword_new1.value;
|
|
//신규비밀번호
|
|
if (form.txtPassword_new1.value == "" ) {
|
|
alert("신규비밀번호를 입력해주세요.");
|
|
form.txtPassword_new1.focus();
|
|
return false;
|
|
} else {
|
|
if (!chkPwd(aa)) {
|
|
alert("특수문자 / 영문 / 숫자 포함 형태의 6~15자리 이내로 설정하십시오.");
|
|
return false;
|
|
}
|
|
}
|
|
//신규비밀번호2
|
|
if (form.txtPassword_new2.value == "" ) {
|
|
alert("신규비밀번호를 입력해 주십시요...");
|
|
form.txtPassword_new2.focus();
|
|
return false;
|
|
}
|
|
//신규비밀번호2
|
|
if (form.txtPassword_new1.value != form.txtPassword_new2.value ) {
|
|
alert("신규비밀번호가 서로 다릅니다....");
|
|
form.txtPassword_new2.value = "";
|
|
form.txtPassword_new2.focus();
|
|
return false;
|
|
}
|
|
|
|
form.submit();
|
|
}
|
|
</script>
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<!-- #include virtual = "include/footer.asp" --> |