|
@@ -292,7 +292,7 @@ function Login2()
|
|
|
$other_passwords = array();
|
|
|
|
|
|
|
|
|
- if ($user_settings['password_salt'] == '')
|
|
|
+ if (!empty($modSettings['enable_password_conversion']) && $user_settings['password_salt'] == '')
|
|
|
{
|
|
|
|
|
|
$other_passwords[] = crypt($_POST['passwrd'], substr($_POST['passwrd'], 0, 2));
|
|
@@ -318,7 +318,7 @@ function Login2()
|
|
|
$other_passwords[] = md5(crypt($_POST['passwrd'], 'CRYPT_MD5'));
|
|
|
}
|
|
|
|
|
|
- elseif (strlen($user_settings['passwd']) == 32)
|
|
|
+ elseif (!empty($modSettings['enable_password_conversion']) && strlen($user_settings['passwd']) == 32)
|
|
|
{
|
|
|
|
|
|
$other_passwords[] = md5(md5($_POST['passwrd']) . $user_settings['password_salt']);
|
|
@@ -336,7 +336,8 @@ function Login2()
|
|
|
$other_passwords[] = sha1(strtolower($user_settings['member_name']) . un_htmlspecialchars($_POST['passwrd']));
|
|
|
|
|
|
|
|
|
- $other_passwords[] = sha1($user_settings['password_salt'] . sha1($user_settings['password_salt'] . sha1($_POST['passwrd'])));
|
|
|
+ if (!empty($modSettings['enable_password_conversion']))
|
|
|
+ $other_passwords[] = sha1($user_settings['password_salt'] . sha1($user_settings['password_salt'] . sha1($_POST['passwrd'])));
|
|
|
|
|
|
|
|
|
if ($context['character_set'] == 'utf8' && !empty($modSettings['previousCharacterSet']) && $modSettings['previousCharacterSet'] != 'utf8')
|