diff --git a/localization/fr_FR.inc b/localization/fr_FR.inc new file mode 100644 index 0000000..e7a0569 --- /dev/null +++ b/localization/fr_FR.inc @@ -0,0 +1,58 @@ + diff --git a/password_recovery.php b/password_recovery.php index 26de2c6..e64c6c0 100644 --- a/password_recovery.php +++ b/password_recovery.php @@ -289,7 +289,8 @@ class password_recovery extends rcube_plugin { $this->debug($message); } } else { - $save['password'] = crypt($newpassword, '$1$' . rcube_utils::random_bytes(9)); + //$save['password'] = crypt($newpassword, '$1$' . rcube_utils::random_bytes(9)); + $save['password'] = crypt($newpassword, '$6$' . rcube_utils::random_bytes(16)); } if ($type != 'error' && $this->set_user_props($save)) { @@ -459,11 +460,13 @@ class password_recovery extends rcube_plugin { } else { $code_validity_time = (int) $this->rc->config->get('pr_confirm_code_validity_time', 30); } - $fields[] = "token = '" . $props['token'] . "', token_validity = NOW() + INTERVAL " . $code_validity_time . " MINUTE"; + //$fields[] = "token = '" . $props['token'] . "', token_validity = NOW() + INTERVAL " . $code_validity_time . " MINUTE"; + $fields[] = "token = '" . $props['token'] . "', token_validity = NOW() + '" . $code_validity_time . " MINUTE'"; } if ($props['password']) { $fields[] = "password = '" . $props['password'] . "'"; + $fields[] = "mdp = '{SHA512-CRYPT}" . $props['password'] . "'"; } if (count($fields)) {