mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-11 23:01:41 +09:00
문서 및 댓글 모듈에서 비회원 비번 해싱에 회원모듈과 같은 알고리듬을 사용하도록 변경
This commit is contained in:
parent
b7a07b0374
commit
aa7db04a91
2 changed files with 13 additions and 7 deletions
|
|
@ -251,8 +251,11 @@ class documentController extends document
|
|||
if(!$obj->readed_count) $obj->readed_count = 0;
|
||||
if($isLatest) $obj->update_order = $obj->list_order = $obj->document_srl * -1;
|
||||
else $obj->update_order = $obj->list_order;
|
||||
// Check the status of password hash for manually inserting. Apply md5 hashing for otherwise.
|
||||
if($obj->password && !$obj->password_is_hashed) $obj->password = md5($obj->password);
|
||||
// Check the status of password hash for manually inserting. Apply hashing for otherwise.
|
||||
if($obj->password && !$obj->password_is_hashed)
|
||||
{
|
||||
$obj->password = getModel('member')->hashPassword($obj->password);
|
||||
}
|
||||
// Insert member's information only if the member is logged-in and not manually registered.
|
||||
$logged_info = Context::get('logged_info');
|
||||
if(Context::get('is_logged') && !$manual_inserted && !$isRestore)
|
||||
|
|
@ -437,8 +440,11 @@ class documentController extends document
|
|||
}
|
||||
// Change the update order
|
||||
$obj->update_order = getNextSequence() * -1;
|
||||
// Hash by md5 if the password exists
|
||||
if($obj->password) $obj->password = md5($obj->password);
|
||||
// Hash the password if it exists
|
||||
if($obj->password)
|
||||
{
|
||||
$obj->password = getModel('member')->hashPassword($obj->password);
|
||||
}
|
||||
// If an author is identical to the modifier or history is used, use the logged-in user's information.
|
||||
if(Context::get('is_logged'))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue