@@ 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 BaseObject(-1, $message[$config->password_strength]); |
|
350 | } |
|
351 | ||
352 | // Remove some unnecessary variables from all the vars |
|
353 | $all_args = Context::getRequestVars(); |
|
@@ 2154-2158 (lines=5) @@ | ||
2151 | // Check password strength |
|
2152 | if($args->password && !$password_is_hashed) |
|
2153 | { |
|
2154 | if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
|
2155 | { |
|
2156 | $message = Context::getLang('about_password_strength'); |
|
2157 | return new BaseObject(-1, $message[$config->password_strength]); |
|
2158 | } |
|
2159 | $args->password = $oMemberModel->hashPassword($args->password); |
|
2160 | } |
|
2161 | elseif(!$args->password) |
|
@@ 2407-2411 (lines=5) @@ | ||
2404 | // Check password strength |
|
2405 | if($args->password) |
|
2406 | { |
|
2407 | if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
|
2408 | { |
|
2409 | $message = Context::getLang('about_password_strength'); |
|
2410 | return new BaseObject(-1, $message[$config->password_strength]); |
|
2411 | } |
|
2412 | $args->password = $oMemberModel->hashPassword($args->password); |
|
2413 | } |
|
2414 | else |
|
@@ 2513-2517 (lines=5) @@ | ||
2510 | $oMemberModel = getModel('member'); |
|
2511 | $config = $oMemberModel->getMemberConfig(); |
|
2512 | ||
2513 | if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
|
2514 | { |
|
2515 | $message = Context::getLang('about_password_strength'); |
|
2516 | return new BaseObject(-1, $message[$config->password_strength]); |
|
2517 | } |
|
2518 | ||
2519 | $args->password = $oMemberModel->hashPassword($args->password); |
|
2520 | } |