From d0154bd838bb3de9216a3c3051b416e899f72a47 Mon Sep 17 00:00:00 2001 From: phantom <563789445@qq.com> Date: Fri, 10 Aug 2018 15:30:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=B3=A8=E5=86=8C=E6=97=B6=E9=87=8D=E5=A4=8D=E5=AF=B9?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E5=8A=A0=E5=AF=86=E5=AF=BC=E8=87=B4=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E4=B8=8D=E6=88=90=E5=8A=9F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/model/Member.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/common/model/Member.php b/application/common/model/Member.php index d6c4888b..69275776 100644 --- a/application/common/model/Member.php +++ b/application/common/model/Member.php @@ -152,8 +152,8 @@ class Member extends Base { function register($username, $password, $repassword, $email, $isautologin = true, $other = array()){ $data['username'] = $username; $data['salt'] = rand_string(6); - $data['password'] = md5($password . $data['salt']); - $data['repassword'] = md5($repassword . $data['salt']); + $data['password'] = $password; + $data['repassword'] = $repassword; $data['email'] = $email; if (!empty($other)) { $data = array_merge($data, $other);