Update password_recovery.php

This commit is contained in:
AlfnRU 2022-03-01 23:47:04 +03:00 committed by GitHub
parent 485605f85b
commit 36a04049d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -289,8 +289,8 @@ class password_recovery extends rcube_plugin {
$this->debug($message); $this->debug($message);
} }
} else { } 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)); //$save['password'] = crypt($newpassword, '$6$' . rcube_utils::random_bytes(16));
} }
if ($type != 'error' && $this->set_user_props($save)) { if ($type != 'error' && $this->set_user_props($save)) {
@ -460,8 +460,8 @@ class password_recovery extends rcube_plugin {
} else { } else {
$code_validity_time = (int) $this->rc->config->get('pr_confirm_code_validity_time', 30); $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'"; //$fields[] = "token = '" . $props['token'] . "', token_validity = NOW() + '" . $code_validity_time . " MINUTE'";
} }
if ($props['password']) { if ($props['password']) {