|
@@ 297-301 (lines=5) @@
|
| 294 |
|
if($args->password1) $args->password = $args->password1; |
| 295 |
|
|
| 296 |
|
// check password strength |
| 297 |
|
if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
| 298 |
|
{ |
| 299 |
|
$message = Context::getLang('about_password_strength'); |
| 300 |
|
return new Object(-1, $message[$config->password_strength]); |
| 301 |
|
} |
| 302 |
|
|
| 303 |
|
// Remove some unnecessary variables from all the vars |
| 304 |
|
$all_args = Context::getRequestVars(); |
|
@@ 1953-1957 (lines=5) @@
|
| 1950 |
|
// Check password strength |
| 1951 |
|
if($args->password && !$password_is_hashed) |
| 1952 |
|
{ |
| 1953 |
|
if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
| 1954 |
|
{ |
| 1955 |
|
$message = Context::getLang('about_password_strength'); |
| 1956 |
|
return new Object(-1, $message[$config->password_strength]); |
| 1957 |
|
} |
| 1958 |
|
$args->password = $oMemberModel->hashPassword($args->password); |
| 1959 |
|
} |
| 1960 |
|
elseif(!$args->password) |
|
@@ 2194-2198 (lines=5) @@
|
| 2191 |
|
// Check password strength |
| 2192 |
|
if($args->password) |
| 2193 |
|
{ |
| 2194 |
|
if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
| 2195 |
|
{ |
| 2196 |
|
$message = Context::getLang('about_password_strength'); |
| 2197 |
|
return new Object(-1, $message[$config->password_strength]); |
| 2198 |
|
} |
| 2199 |
|
$args->password = $oMemberModel->hashPassword($args->password); |
| 2200 |
|
} |
| 2201 |
|
else |
|
@@ 2285-2289 (lines=5) @@
|
| 2282 |
|
$oMemberModel = getModel('member'); |
| 2283 |
|
$config = $oMemberModel->getMemberConfig(); |
| 2284 |
|
|
| 2285 |
|
if(!$oMemberModel->checkPasswordStrength($args->password, $config->password_strength)) |
| 2286 |
|
{ |
| 2287 |
|
$message = Context::getLang('about_password_strength'); |
| 2288 |
|
return new Object(-1, $message[$config->password_strength]); |
| 2289 |
|
} |
| 2290 |
|
|
| 2291 |
|
$args->password = $oMemberModel->hashPassword($args->password); |
| 2292 |
|
} |