mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 01:42:14 +09:00
문서 및 댓글 모듈에서 비회원 비번 해싱에 회원모듈과 같은 알고리듬을 사용하도록 변경
This commit is contained in:
parent
b7a07b0374
commit
aa7db04a91
2 changed files with 13 additions and 7 deletions
|
|
@ -253,10 +253,10 @@ class commentController extends comment
|
|||
// get a object of document model
|
||||
$oDocumentModel = getModel('document');
|
||||
|
||||
// even for manual_inserted if password exists, md5 it.
|
||||
// even for manual_inserted if password exists, hash it.
|
||||
if($obj->password)
|
||||
{
|
||||
$obj->password = md5($obj->password);
|
||||
$obj->password = getModel('member')->hashPassword($obj->password);
|
||||
}
|
||||
|
||||
// get the original posting
|
||||
|
|
@ -677,7 +677,7 @@ class commentController extends comment
|
|||
|
||||
if($obj->password)
|
||||
{
|
||||
$obj->password = md5($obj->password);
|
||||
$obj->password = getModel('member')->hashPassword($obj->password);
|
||||
}
|
||||
|
||||
if($obj->homepage)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue