|
@@ 346-350 (lines=5) @@
|
| 343 |
|
if($args->password1) $args->password = $args->password1; |
| 344 |
|
|
| 345 |
|
// check password strength |
| 346 |
|
if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
| 347 |
|
{ |
| 348 |
|
$message = Context::getLang('about_password_strength'); |
| 349 |
|
return new Object(-1, $message[$config->password_strength]); |
| 350 |
|
} |
| 351 |
|
|
| 352 |
|
// Remove some unnecessary variables from all the vars |
| 353 |
|
$all_args = Context::getRequestVars(); |
|
@@ 2034-2038 (lines=5) @@
|
| 2031 |
|
// Check password strength |
| 2032 |
|
if($args->password && !$password_is_hashed) |
| 2033 |
|
{ |
| 2034 |
|
if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
| 2035 |
|
{ |
| 2036 |
|
$message = Context::getLang('about_password_strength'); |
| 2037 |
|
return new Object(-1, $message[$config->password_strength]); |
| 2038 |
|
} |
| 2039 |
|
$args->password = $oMemberModel->hashPassword($args->password); |
| 2040 |
|
} |
| 2041 |
|
elseif(!$args->password) |
|
@@ 2287-2291 (lines=5) @@
|
| 2284 |
|
// Check password strength |
| 2285 |
|
if($args->password) |
| 2286 |
|
{ |
| 2287 |
|
if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
| 2288 |
|
{ |
| 2289 |
|
$message = Context::getLang('about_password_strength'); |
| 2290 |
|
return new Object(-1, $message[$config->password_strength]); |
| 2291 |
|
} |
| 2292 |
|
$args->password = $oMemberModel->hashPassword($args->password); |
| 2293 |
|
} |
| 2294 |
|
else |
|
@@ 2393-2397 (lines=5) @@
|
| 2390 |
|
$oMemberModel = getModel('member'); |
| 2391 |
|
$config = $oMemberModel->getMemberConfig(); |
| 2392 |
|
|
| 2393 |
|
if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
| 2394 |
|
{ |
| 2395 |
|
$message = Context::getLang('about_password_strength'); |
| 2396 |
|
return new Object(-1, $message[$config->password_strength]); |
| 2397 |
|
} |
| 2398 |
|
|
| 2399 |
|
$args->password = $oMemberModel->hashPassword($args->password); |
| 2400 |
|
} |