From 8133620a6218d2de47425c2c3e60c4ea2524e6ea Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Tue, 25 Nov 2014 19:26:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=AB=E6=99=82=E8=A7=A3Bug:=20remove=20cryp?= =?UTF-8?q?tEncrypt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/Util/Password.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/htdocs/lib/Util/Password.php b/htdocs/lib/Util/Password.php index 0de7320..d97ce09 100644 --- a/htdocs/lib/Util/Password.php +++ b/htdocs/lib/Util/Password.php @@ -146,10 +146,10 @@ class Password { if($encrypted == $this->sha1Encrypt($encrypted)) return true; } - if (function_exists('crypt')) { - if($encrypted == $this->cryptEncrypt($encrypted)) - return true; - } +// if (function_exists('crypt')) { +// if($encrypted == $this->cryptEncrypt($encrypted)) +// return true; +// } return false; } @@ -179,15 +179,15 @@ class Password { return sha1($text); } - /** - * CRYPT加密這段字 - * - * @param string $text 原本字串 - * @return string 加密後結果字串 - * @since 2.0.0 - */ - public function cryptEncrypt($text){ - return crypt($text); - } +// /** +// * CRYPT加密這段字 +// * +// * @param string $text 原本字串 +// * @return string 加密後結果字串 +// * @since 2.0.0 +// */ +// public function cryptEncrypt($text){ +// return crypt($text); +// } }