mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 14:49:56 +09:00
Modify member module to make use of improved password hashing
This commit is contained in:
parent
7499a2a6c7
commit
7c6b82a522
8 changed files with 156 additions and 59 deletions
|
|
@ -71,6 +71,20 @@ class member extends ModuleObject {
|
|||
if($config->group_image_mark!='Y') $config->group_image_mark = 'N';
|
||||
if(!$config->password_strength) $config->password_strength = 'normal';
|
||||
|
||||
if(!$config->password_hashing_algorithm)
|
||||
{
|
||||
$oPassword = new Password();
|
||||
$config->password_hashing_algorithm = $oPassword->getBestAlgorithm();
|
||||
}
|
||||
if(!$config->password_hashing_work_factor)
|
||||
{
|
||||
$config->password_hashing_work_factor = 8;
|
||||
}
|
||||
if(!$config->password_hashing_auto_upgrade)
|
||||
{
|
||||
$config->password_hashing_auto_upgrade = 'Y';
|
||||
}
|
||||
|
||||
global $lang;
|
||||
$oMemberModel = getModel('member');
|
||||
// Create a member controller object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue