From 8ba373a9513b418bac8d336668eb32fd1b490c5d Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 2 Mar 2020 19:52:30 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9A=8C=EC=9B=90=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=EC=8B=9C=20=EC=B2=B4=ED=81=AC=EA=B3=BC?= =?UTF-8?q?=EC=A0=95=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/register_form.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bbs/register_form.php b/bbs/register_form.php index 2d38f0d1b..d72804dd2 100644 --- a/bbs/register_form.php +++ b/bbs/register_form.php @@ -12,10 +12,13 @@ set_session("ss_cert_no", ""); set_session("ss_cert_hash", ""); set_session("ss_cert_type", ""); +$is_social_login_modify = false; + if( $provider && function_exists('social_nonce_is_valid') ){ //모바일로 소셜 연결을 했다면 if( social_nonce_is_valid(get_session("social_link_token"), $provider) ){ //토큰값이 유효한지 체크 $w = 'u'; //회원 수정으로 처리 $_POST['mb_id'] = $member['mb_id']; + $is_social_login_modify = true; } } @@ -75,8 +78,14 @@ if ($w == "") { // 수정 후 다시 이 폼으로 돌아오기 위해 임시로 저장해 놓음 set_session("ss_tmp_password", $_POST[mb_password]); */ + + if($_POST['mb_id'] && ! (isset($_POST['mb_password']) && $_POST['mb_password'])){ + if( ! $is_social_login_modify ){ + alert('비밀번호를 입력해 주세요.'); + } + } - if ($_POST['mb_password']) { + if (isset($_POST['mb_password'])) { // 수정된 정보를 업데이트후 되돌아 온것이라면 비밀번호가 암호화 된채로 넘어온것임 if ($_POST['is_update']) { $tmp_password = $_POST['mb_password'];