From 38bda21f84be63aaed2f61d77441f31ad42ae59b Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 25 Aug 2014 15:48:36 +0900 Subject: [PATCH] =?UTF-8?q?bin2hex=20=ED=95=A8=EC=88=98=EB=A5=BC=20md5?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/password_lost2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbs/password_lost2.php b/bbs/password_lost2.php index 10393e6b0..2b7a43a80 100644 --- a/bbs/password_lost2.php +++ b/bbs/password_lost2.php @@ -33,7 +33,7 @@ $change_password = rand(100000, 999999); $mb_lost_certify = sql_password($change_password); // 어떠한 회원정보도 포함되지 않은 일회용 난수를 생성하여 인증에 사용 -$mb_nonce = bin2hex(pack('V*', rand(), rand(), rand(), rand())); +$mb_nonce = md5(pack('V*', rand(), rand(), rand(), rand())); // 임시비밀번호와 난수를 mb_lost_certify 필드에 저장 $sql = " update {$g5['member_table']} set mb_lost_certify = '$mb_nonce $mb_lost_certify' where mb_id = '{$mb['mb_id']}' ";