first
This commit is contained in:
31
modules/member/action/a.confirm_password.php
Normal file
31
modules/member/action/a.confirm_password.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit; // 비정상적인 접근을 차단
|
||||
|
||||
if (!$my['uid']) getLink('','','회원만 접근할 수 있습니다.',''); // 회원만 접근 허용할 경우
|
||||
|
||||
$M = getDbData($table['s_mbrid'],"id='".$id."'",'*');
|
||||
$M1 = getDbData($table['s_mbrdata'],'memberuid='.$M['uid'],'*');
|
||||
|
||||
if (!password_verify($pw,$M['pw']) )
|
||||
{
|
||||
echo '<script type="text/javascript">';
|
||||
echo 'parent.$("#password").addClass("is-invalid").val("").focus();';
|
||||
echo 'parent.$(".alert").removeClass("d-none");';
|
||||
echo 'parent.$("#passwordErrorBlock").html("잘못된 비밀번호입니다. 다시 시도하세요.");';
|
||||
echo '</script>';
|
||||
exit();
|
||||
}
|
||||
|
||||
if ($type == 'changeID') {
|
||||
echo '<script type="text/javascript">';
|
||||
echo 'parent.$("#FormConfirmPassword").addClass("d-none");';
|
||||
echo 'parent.$("#FormChangeID").removeClass("d-none");';
|
||||
echo 'parent.$("#FormChangeID").find("[name=a]").val("account_config");';
|
||||
echo 'setTimeout(function(){parent.$("#FormChangeID").find(".js-focus").focus();}, 100);';
|
||||
echo 'parent.$("#FormChangeID").find("fieldset").attr("disabled",false);';
|
||||
echo '</script>';
|
||||
}
|
||||
|
||||
|
||||
exit();
|
||||
?>
|
||||
Reference in New Issue
Block a user