mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix truncated password hash for documents and comments written by non-members, if member module is configured to use a hashing algorithm that produces more than 60 chars
This commit is contained in:
parent
10cd76d0be
commit
f34c27c26b
3 changed files with 31 additions and 4 deletions
|
|
@ -486,7 +486,7 @@ class CommentController extends Comment
|
|||
// even for manual_inserted if password exists, hash it.
|
||||
if($obj->password)
|
||||
{
|
||||
$obj->password = MemberModel::hashPassword($obj->password);
|
||||
$obj->password = \Rhymix\Framework\Password::hashPassword($obj->password, \Rhymix\Framework\Password::getBackwardCompatibleAlgorithm());
|
||||
}
|
||||
|
||||
// get the original posting
|
||||
|
|
@ -871,7 +871,7 @@ class CommentController extends Comment
|
|||
|
||||
if($obj->password)
|
||||
{
|
||||
$obj->password = MemberModel::hashPassword($obj->password);
|
||||
$obj->password = \Rhymix\Framework\Password::hashPassword($obj->password, \Rhymix\Framework\Password::getBackwardCompatibleAlgorithm());
|
||||
}
|
||||
|
||||
if($obj->homepage)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue