暫時解Bug: remove cryptEncrypt
This commit is contained in:
parent
9cfc498e44
commit
8133620a62
@ -146,10 +146,10 @@ class Password {
|
|||||||
if($encrypted == $this->sha1Encrypt($encrypted))
|
if($encrypted == $this->sha1Encrypt($encrypted))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (function_exists('crypt')) {
|
// if (function_exists('crypt')) {
|
||||||
if($encrypted == $this->cryptEncrypt($encrypted))
|
// if($encrypted == $this->cryptEncrypt($encrypted))
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -179,15 +179,15 @@ class Password {
|
|||||||
return sha1($text);
|
return sha1($text);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
// /**
|
||||||
* CRYPT加密這段字
|
// * CRYPT加密這段字
|
||||||
*
|
// *
|
||||||
* @param string $text 原本字串
|
// * @param string $text 原本字串
|
||||||
* @return string 加密後結果字串
|
// * @return string 加密後結果字串
|
||||||
* @since 2.0.0
|
// * @since 2.0.0
|
||||||
*/
|
// */
|
||||||
public function cryptEncrypt($text){
|
// public function cryptEncrypt($text){
|
||||||
return crypt($text);
|
// return crypt($text);
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user