|
@@ 319-323 (lines=5) @@
|
| 316 |
|
if($args->password1) $args->password = $args->password1; |
| 317 |
|
|
| 318 |
|
// check password strength |
| 319 |
|
if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
| 320 |
|
{ |
| 321 |
|
$message = Context::getLang('about_password_strength'); |
| 322 |
|
return new Object(-1, $message[$config->password_strength]); |
| 323 |
|
} |
| 324 |
|
|
| 325 |
|
// Remove some unnecessary variables from all the vars |
| 326 |
|
$all_args = Context::getRequestVars(); |
|
@@ 1975-1979 (lines=5) @@
|
| 1972 |
|
// Check password strength |
| 1973 |
|
if($args->password && !$password_is_hashed) |
| 1974 |
|
{ |
| 1975 |
|
if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
| 1976 |
|
{ |
| 1977 |
|
$message = Context::getLang('about_password_strength'); |
| 1978 |
|
return new Object(-1, $message[$config->password_strength]); |
| 1979 |
|
} |
| 1980 |
|
$args->password = $oMemberModel->hashPassword($args->password); |
| 1981 |
|
} |
| 1982 |
|
elseif(!$args->password) |
|
@@ 2219-2223 (lines=5) @@
|
| 2216 |
|
// Check password strength |
| 2217 |
|
if($args->password) |
| 2218 |
|
{ |
| 2219 |
|
if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
| 2220 |
|
{ |
| 2221 |
|
$message = Context::getLang('about_password_strength'); |
| 2222 |
|
return new Object(-1, $message[$config->password_strength]); |
| 2223 |
|
} |
| 2224 |
|
$args->password = $oMemberModel->hashPassword($args->password); |
| 2225 |
|
} |
| 2226 |
|
else |
|
@@ 2310-2314 (lines=5) @@
|
| 2307 |
|
$oMemberModel = getModel('member'); |
| 2308 |
|
$config = $oMemberModel->getMemberConfig(); |
| 2309 |
|
|
| 2310 |
|
if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
| 2311 |
|
{ |
| 2312 |
|
$message = Context::getLang('about_password_strength'); |
| 2313 |
|
return new Object(-1, $message[$config->password_strength]); |
| 2314 |
|
} |
| 2315 |
|
|
| 2316 |
|
$args->password = $oMemberModel->hashPassword($args->password); |
| 2317 |
|
} |